| 1 | <?php  | 
            ||
| 11 | trait PackageHasConfigTrait  | 
            ||
| 12 | { | 
            ||
| 13 | protected static $config = null;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * @param null $name  | 
            ||
| 17 | * @param null $default  | 
            ||
| 18 | * @return mixed|Config|string|null  | 
            ||
| 19 | */  | 
            ||
| 20 | protected static function getPackageConfig($name = null, $default = null)  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * @return string  | 
            ||
| 30 | */  | 
            ||
| 31 | abstract protected static function getPackageConfigName();  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * @return Config  | 
            ||
| 35 | */  | 
            ||
| 36 | protected static function getConfig()  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * @return Config  | 
            ||
| 47 | */  | 
            ||
| 48 | protected static function generateConfig()  | 
            ||
| 59 | |||
| 60 | /**  | 
            ||
| 61 | * @param Config|array $config  | 
            ||
| 62 | */  | 
            ||
| 63 | public static function setConfig($config)  | 
            ||
| 70 | |||
| 71 | public static function resetConfig()  | 
            ||
| 75 | }  | 
            ||
| 76 |