Conditions | 6 |
Paths | 7 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
61 | protected function validateProperties(): void |
||
62 | { |
||
63 | $placeholders = $this->url->getPlaceholders(); |
||
64 | if (!$this->variables && $placeholders) { |
||
65 | throw new MissingPlaceholderVariables($placeholders); |
||
66 | } |
||
67 | $missing = []; |
||
68 | foreach ($placeholders as $placeholder) { |
||
69 | if (!isset($this->variables[$placeholder])) { |
||
70 | $missing[] = $placeholder; |
||
71 | } |
||
72 | } |
||
73 | if (!empty($missing)) { |
||
74 | throw new MissingPlaceholderVariables($missing); |
||
75 | } |
||
78 |