| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 37 | 2 | public function getSaverForEntity( |
|
| 38 | EntityInterface $entity |
||
| 39 | ): EntitySaverInterface { |
||
| 40 | 2 | $saverFqn = $this->getSaverFqn($entity); |
|
| 41 | 2 | if (class_exists($saverFqn)) { |
|
| 42 | 1 | return new $saverFqn($this->entityManager); |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | return $this->genericSaver; |
|
| 46 | } |
||
| 66 |