| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | abstract class Optionable implements OptionableInterface |
||
| 9 | { |
||
| 10 | /** @var array */ |
||
| 11 | protected $options; |
||
| 12 | |||
| 13 | 1 | public function __construct(array $options = []) |
|
| 14 | { |
||
| 15 | 1 | $this->resolveOptions($options); |
|
| 16 | 1 | $this->hydrateWithOptions(); |
|
| 17 | 1 | } |
|
| 18 | |||
| 19 | abstract protected function hydrateWithOptions(); |
||
| 20 | |||
| 21 | 1 | public function resolveOptions($options):void |
|
| 26 | 1 | } |
|
| 27 | } |
||
| 28 |