| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 18 | class MockEntityFactory |
||
| 19 | { |
||
| 20 | public static function createMockEntity(): EntityInterface |
||
| 21 | { |
||
| 22 | return new class() implements EntityInterface |
||
| 23 | { |
||
| 24 | use ImplementNotifyChangeTrackingPolicy, |
||
| 25 | UsesPHPMetaDataTrait, |
||
| 26 | ValidatedEntityTrait; |
||
| 27 | |||
| 28 | public function __construct() |
||
| 29 | { |
||
| 30 | self::getDoctrineStaticMeta()->setMetaData(new ClassMetadata('anon')); |
||
| 31 | } |
||
| 32 | |||
| 33 | protected static function setCustomRepositoryClass(ClassMetadataBuilder $builder) |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getId() |
||
| 40 | } |
||
| 41 | }; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.