| @@ 78-86 (lines=9) @@ | ||
| 75 | * @param array $configuration |
|
| 76 | * @param string $propertyPath |
|
| 77 | */ |
|
| 78 | private function validateLoaDefinition($configuration, $propertyPath) |
|
| 79 | { |
|
| 80 | $value = $configuration['loa']; |
|
| 81 | $path = $propertyPath . '.loa'; |
|
| 82 | ||
| 83 | Assertion::isArray($value, 'must be an object', $path); |
|
| 84 | Assertion::keyExists($value, '__default__', "must have the default loa set on the '__default__' property", $path); |
|
| 85 | Assertion::allString($value, 'all properties must contain strings as values', $path); |
|
| 86 | } |
|
| 87 | } |
|
| 88 | ||
| @@ 131-139 (lines=9) @@ | ||
| 128 | * @param array $configuration |
|
| 129 | * @param string $propertyPath |
|
| 130 | */ |
|
| 131 | private function validateLoaDefinition($configuration, $propertyPath) |
|
| 132 | { |
|
| 133 | $value = $configuration['loa']; |
|
| 134 | $path = $propertyPath . '.loa'; |
|
| 135 | ||
| 136 | Assertion::isArray($value, 'must be an object', $path); |
|
| 137 | Assertion::keyExists($value, '__default__', "must have the default loa set on the '__default__' property", $path); |
|
| 138 | Assertion::allString($value, 'all properties must contain strings as values', $path); |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * @param array $configuration |
|