Added \ncc\Abstracts > RemoteSourceType
https://git.n64.cc/nosial/ncc/-/issues/28
This commit is contained in:
parent
a21ea606d9
commit
223ae9189b
1 changed files with 30 additions and 0 deletions
30
src/ncc/Abstracts/RemoteSourceType.php
Normal file
30
src/ncc/Abstracts/RemoteSourceType.php
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace ncc\Abstracts;
|
||||||
|
|
||||||
|
abstract class RemoteSourceType
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* A builtin source type is not defined by the user but handled by
|
||||||
|
* an extension built into NCC
|
||||||
|
*/
|
||||||
|
const Builtin = 'builtin';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A defined source type is defined by the user in the remote sources file
|
||||||
|
* and handled by an extension designed by passing on the information of
|
||||||
|
* the source to the extension
|
||||||
|
*/
|
||||||
|
const Defined = 'defined';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unsupported or invalid source type
|
||||||
|
*/
|
||||||
|
const Unknown = 'unknown';
|
||||||
|
|
||||||
|
const All = [
|
||||||
|
self::Builtin,
|
||||||
|
self::Defined,
|
||||||
|
self::Unknown
|
||||||
|
];
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue