| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class DefaultsAbstract |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param string $name |
||
| 12 | * @return void|array |
||
| 13 | */ |
||
| 14 | 7 | public function __call( $name, array $args = [] ) |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | abstract protected function defaults(); |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | protected function merge( array $values = [] ) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | 7 | protected function restrict( array $values = [] ) |
|
| 45 |