Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class AssertDecorator extends DecoratorAbstract |
||
8 | { |
||
9 | 33 | public function decorate( |
|
10 | &$value, FieldMetadata $field, ?string $group = null |
||
11 | ): bool { |
||
12 | 33 | if (!$field->configuration->satisfyAssertsConditions) { |
|
13 | 3 | return false; |
|
14 | } |
||
15 | |||
16 | 30 | return parent::decorate($value, $field, $group); |
|
17 | } |
||
18 | |||
19 | 9 | protected function getDecoratorFqcn($simpleClassName) |
|
22 | } |
||
23 | } |
||
24 |