Added RepositorySourceInterface.php
https://git.n64.cc/nosial/ncc/-/issues/28
This commit is contained in:
parent
47f58aa50e
commit
31ae2fcddd
1 changed files with 21 additions and 0 deletions
21
src/ncc/Interfaces/RepositorySourceInterface.php
Normal file
21
src/ncc/Interfaces/RepositorySourceInterface.php
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace ncc\Interfaces;
|
||||||
|
|
||||||
|
use ncc\Objects\DefinedRemoteSource;
|
||||||
|
use ncc\Objects\RemotePackageInput;
|
||||||
|
|
||||||
|
interface RepositorySourceInterface
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Fetches a package and all it's dependencies from the given remote source
|
||||||
|
* and optionally converts and compiles it to a local package, returns the
|
||||||
|
* fetched package as a path to the ncc package file. This function uses
|
||||||
|
* a defined remote source to fetch the package or build the package from.
|
||||||
|
*
|
||||||
|
* @param RemotePackageInput $packageInput
|
||||||
|
* @param DefinedRemoteSource $definedRemoteSource
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function fetch(RemotePackageInput $packageInput, DefinedRemoteSource $definedRemoteSource): string;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue