| @@ 62-70 (lines=9) @@ | ||
| 59 | * @param array $configuration |
|
| 60 | * @param string $propertyPath |
|
| 61 | */ |
|
| 62 | private function validateLoaDefinition($configuration, $propertyPath) |
|
| 63 | { |
|
| 64 | $value = $configuration['loa']; |
|
| 65 | $path = $propertyPath . '.loa'; |
|
| 66 | ||
| 67 | Assert::isArray($value, 'must be an object', $path); |
|
| 68 | Assert::keyExists($value, '__default__', "must have the default loa set on the '__default__' property", $path); |
|
| 69 | Assert::allString($value, 'all properties must contain strings as values', $path); |
|
| 70 | } |
|
| 71 | } |
|
| 72 | ||
| @@ 125-133 (lines=9) @@ | ||
| 122 | * @param array $configuration |
|
| 123 | * @param string $propertyPath |
|
| 124 | */ |
|
| 125 | private function validateLoaDefinition($configuration, $propertyPath) |
|
| 126 | { |
|
| 127 | $value = $configuration['loa']; |
|
| 128 | $path = $propertyPath . '.loa'; |
|
| 129 | ||
| 130 | Assert::isArray($value, 'must be an object', $path); |
|
| 131 | Assert::keyExists($value, '__default__', "must have the default loa set on the '__default__' property", $path); |
|
| 132 | Assert::allString($value, 'all properties must contain strings as values', $path); |
|
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| 136 | * @param array $configuration |
|