| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 916 | public function execute(EntityManagerInterface $entityManager, object $entity) : array |
|
| 29 | { |
||
| 30 | 916 | $value = $this->generator->generate($entityManager, $entity); |
|
| 31 | |||
| 32 | 916 | $platform = $entityManager->getConnection()->getDatabasePlatform(); |
|
| 33 | 916 | $convertedValue = $this->column->getType()->convertToPHPValue($value, $platform); |
|
| 34 | |||
| 35 | 916 | return [$this->column->getColumnName() => $convertedValue]; |
|
| 36 | } |
||
| 43 |