Conditions | 4 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function propertyViolationExists(string $property, string $violationClass) |
||
36 | { |
||
37 | if (array_key_exists($property, $this->violations)) { |
||
38 | foreach ($this->violations[$property] as $violation) { |
||
39 | if ($violation instanceof $violationClass) |
||
40 | return true; |
||
41 | } |
||
42 | } |
||
43 | return false; |
||
44 | } |
||
51 | } |