| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function initializeValue(VariableSerializersInterface $serializers, string $dbType): void |
||
| 18 | { |
||
| 19 | $typedValue = $this->wrappedQueryValue->getTypedValue(); |
||
| 20 | |||
| 21 | $resolver = Context::getProcessEngineConfiguration()->getValueTypeResolver(); |
||
| 22 | $concreteTypes = $resolver->getSubTypes($typedValue->getType()); |
||
|
|
|||
| 23 | |||
| 24 | foreach ($concreteTypes as $type) { |
||
| 25 | if ($type->canConvertFromTypedValue($typedValue)) { |
||
| 26 | $convertedValue = $type->convertFromTypedValue($typedValue); |
||
| 27 | $aggregatedValue = new SingleQueryVariableValueCondition($this->wrappedQueryValue); |
||
| 28 | $aggregatedValue->initializeValue($serializers, $convertedValue, $dbType); |
||
| 29 | $this->aggregatedValues[] = $aggregatedValue; |
||
| 30 | } |
||
| 39 |