Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
41 | protected function isWithEntityManager(string $transformerClassName) |
||
42 | { |
||
43 | $reflectionClass = new \ReflectionClass($transformerClassName); |
||
44 | if ($reflectionClass->implementsInterface('QualityCode\TransformAndLoadBundle\Import\Transformer\TransformerWithEntityManagerInterface')) { |
||
45 | return true; |
||
46 | } |
||
47 | |||
48 | if ($reflectionClass->isSubclassOf('QualityCode\TransformAndLoadBundle\Import\Transformer\TransformerWithEntityAbstract')) { |
||
49 | return true; |
||
50 | } |
||
51 | |||
52 | return false; |
||
53 | } |
||
54 | } |
||
55 |