| Conditions | 5 |
| Paths | 16 |
| Total Lines | 22 |
| Code Lines | 12 |
| 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 (array_key_exists('entry', $values)) { |
||
| 32 | $entry = $values['entry']; |
||
| 33 | } |
||
| 34 | |||
| 35 | if (array_key_exists('inline', $values)) { |
||
| 36 | $inline = $values['inline']; |
||
| 37 | } |
||
| 38 | |||
| 39 | if (array_key_exists('namespace', $values)) { |
||
| 40 | $namespace = $values['namespace']; |
||
| 41 | } |
||
| 42 | |||
| 43 | if (array_key_exists('skipWhenEmpty', $values)) { |
||
| 44 | $skipWhenEmpty = $values['skipWhenEmpty']; |
||
| 45 | } |
||
| 46 | |||
| 47 | $this->entry = $entry; |
||
| 48 | $this->inline = $inline; |
||
| 49 | $this->namespace = $namespace; |
||
| 50 | $this->skipWhenEmpty = $skipWhenEmpty; |
||
| 51 | } |
||
| 53 |