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