Total Complexity | 11 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | trait OptionsTrait |
||
18 | { |
||
19 | /** @var array */ |
||
20 | protected $options = []; |
||
21 | |||
22 | /** |
||
23 | * @param string $name |
||
24 | * |
||
25 | * @return bool |
||
26 | */ |
||
27 | protected function hasOption(string $name): bool |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @param string $name |
||
48 | * @param mixed $default |
||
49 | * |
||
50 | * @return mixed |
||
51 | */ |
||
52 | protected function getOption(string $name, $default = null) |
||
75 |