| Total Complexity | 4 | 
| Total Lines | 54 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 5 | class Options extends AbstractSystem  | 
            ||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * @var \BFW\Core\Options $options  | 
            ||
| 9 | */  | 
            ||
| 10 | protected $options;  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * Initialize option system with parameter passed to Application  | 
            ||
| 14 | */  | 
            ||
| 15 | public function __construct()  | 
            ||
| 16 |     { | 
            ||
| 17 | $this->options = new \BFW\Core\Options(  | 
            ||
| 18 | $this->obtainDefaultOptions(),  | 
            ||
| 19 | \BFW\Application::getInstance()->getDeclaredOptions()  | 
            ||
| 20 | );  | 
            ||
| 21 | |||
| 22 | $this->options  | 
            ||
| 23 | ->searchPaths()  | 
            ||
| 24 | ->checkPaths()  | 
            ||
| 25 | ;  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 |      * {@inheritdoc} | 
            ||
| 30 | *  | 
            ||
| 31 | * @return \BFW\Core\Options  | 
            ||
| 32 | */  | 
            ||
| 33 | public function __invoke()  | 
            ||
| 34 |     { | 
            ||
| 35 | return $this->options;  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 | /**  | 
            ||
| 39 | * Getter accessor to property options  | 
            ||
| 40 | *  | 
            ||
| 41 | * @return \BFW\Core\Options  | 
            ||
| 42 | */  | 
            ||
| 43 | public function getOptions()  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * Define default option values  | 
            ||
| 50 | *  | 
            ||
| 51 | * @return array  | 
            ||
| 52 | */  | 
            ||
| 53 | protected function obtainDefaultOptions(): array  | 
            ||
| 62 |