| 1 | <?php |
||
| 7 | abstract class AbstractOptions |
||
| 8 | { |
||
| 9 | /** @var array */ |
||
| 10 | protected $options; |
||
| 11 | |||
| 12 | 29 | protected function __construct(array $options) |
|
| 16 | |||
| 17 | 33 | public static function fromArray(array $options) |
|
| 23 | |||
| 24 | 22 | public function toArray(): array |
|
| 28 | |||
| 29 | 13 | protected static function validate(array $options): void |
|
| 32 | |||
| 33 | 23 | final protected function get(string $key, $default = null) |
|
| 39 | } |
||
| 40 |