Added \ncc\Abstracts > RemoteSourceType

https://git.n64.cc/nosial/ncc/-/issues/28
This commit is contained in:
Netkas 2022-12-15 01:05:11 -05:00
parent a21ea606d9
commit 223ae9189b

View 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
];
}