| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function pushSubset($subset, closure $closure) |
||
| 20 | { |
||
| 21 | $option = new Option(); |
||
| 22 | |||
| 23 | $option->pushSubset($subset, $closure); |
||
| 24 | |||
| 25 | $render = $option->render(); |
||
| 26 | |||
| 27 | if (starts_with($subset, 'series')) { |
||
| 28 | |||
| 29 | if (str_contains($subset, '.')) { |
||
| 30 | throw new Exceptions\DotNotationNotAvailableException(); |
||
| 31 | } |
||
| 32 | |||
| 33 | $this->options['series'][] = $render['series']; |
||
| 34 | } |
||
| 35 | else { |
||
| 36 | $this->options = array_merge_recursive($this->options, $render); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 68 |