Added \ncc\Interfaces > RuntimeInterface

https://git.n64.cc/nosial/ncc/-/issues/33
This commit is contained in:
Netkas 2022-12-15 01:06:43 -05:00
parent c77c7fcd55
commit b9252a0fda

View file

@ -0,0 +1,24 @@
<?php
namespace ncc\Interfaces;
use ncc\Abstracts\Versions;
use ncc\Exceptions\MissingDependencyException;
use ncc\Exceptions\PackageLockException;
use ncc\Exceptions\PackageNotFoundException;
use ncc\Exceptions\VersionNotFoundException;
use ncc\Objects\PackageLock\VersionEntry;
interface RuntimeInterface
{
/**
* @param VersionEntry $versionEntry
* @param array $options
* @return mixed
* @throws PackageNotFoundException
* @throws VersionNotFoundException
* @throws PackageLockException
* @throws MissingDependencyException
*/
public static function import(VersionEntry $versionEntry, array $options=[]): bool;
}