| Total Complexity | 5 | 
| Total Lines | 27 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 9 | final class JsonPathConditionCollection extends AbstractArrayCollection | ||
| 10 | { | ||
| 11 | public function __toString() | ||
| 12 |     { | ||
| 13 | $string = ''; | ||
| 14 | /** @var JsonPathName $pathName */ | ||
| 15 | /** @var JsonPathCondition $condition */ | ||
| 16 |         foreach ($this as $pathName => $condition) { | ||
| 17 | $string .= $pathName->asString() . ' => ' . $condition->__toString(); | ||
| 18 | } | ||
| 19 | return $string; | ||
| 20 | } | ||
| 21 | |||
| 22 | public function setPathCondition(JsonPathName $path, JsonPathCondition $condition) | ||
| 23 |     { | ||
| 24 | parent::set($path->asString(), $condition); | ||
| 25 | } | ||
| 26 | |||
| 27 | /** @return JsonPathName */ | ||
| 28 | public function key() | ||
| 29 |     { | ||
| 30 | return new JsonPathName(parent::key()); | ||
| 31 | } | ||
| 32 | |||
| 33 | public function iterator() | ||
| 36 | } | ||
| 37 | } | ||
| 38 |