Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | protected function validateTagAttributes(array $actualAttributes, array $expectedAttributeNames, $serviceId, $tagName) |
||
36 | { |
||
37 | foreach ($expectedAttributeNames as $attrName) { |
||
38 | if (!array_key_exists($attrName, $actualAttributes)) { |
||
39 | throw new \RuntimeException(sprintf('Tag "%s" on service "%s" is missing attribute "%s".', |
||
40 | $tagName, |
||
41 | $serviceId, |
||
42 | $attrName |
||
43 | )); |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 |