Conditions | 5 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
55 | private function constraintHasParameters(ResolutionConstraint $constraint, array $parameters) |
||
56 | { |
||
57 | $constraintParameters = $constraint->getParameters(); |
||
58 | foreach ($parameters as $name => $value) { |
||
59 | if (!array_key_exists($name, $constraintParameters)) { |
||
60 | return false; |
||
61 | } elseif (null !== $value && $constraintParameters[$name] !== $value) { |
||
62 | return false; |
||
63 | } |
||
64 | } |
||
65 | |||
66 | return true; |
||
67 | } |
||
68 | } |
||
69 |