| Conditions | 6 |
| Paths | 17 |
| Total Lines | 24 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function __construct(array $values = [], string $entry = 'entry', bool $inline = false, ?string $namespace = null, bool $skipWhenEmpty = true) |
||
| 30 | { |
||
| 31 | if ([] !== $values) { |
||
| 32 | if (array_key_exists('entry', $values)) { |
||
| 33 | $entry = $values['entry']; |
||
| 34 | } |
||
| 35 | |||
| 36 | if (array_key_exists('inline', $values)) { |
||
| 37 | $inline = $values['inline']; |
||
| 38 | } |
||
| 39 | |||
| 40 | if (array_key_exists('namespace', $values)) { |
||
| 41 | $namespace = $values['namespace']; |
||
| 42 | } |
||
| 43 | |||
| 44 | if (array_key_exists('skipWhenEmpty', $values)) { |
||
| 45 | $skipWhenEmpty = $values['skipWhenEmpty']; |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | $this->entry = $entry; |
||
| 50 | $this->inline = $inline; |
||
| 51 | $this->namespace = $namespace; |
||
| 52 | $this->skipWhenEmpty = $skipWhenEmpty; |
||
| 53 | } |
||
| 55 |