Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
23 | 4 | public function __construct(ClassMetadata $classMetadata, ObjectManager $objectManager) |
|
24 | { |
||
25 | 4 | if (self::class !== static::class) { |
|
26 | @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED); |
||
|
|||
27 | } |
||
28 | 4 | parent::__construct($classMetadata, $objectManager); |
|
29 | 4 | } |
|
30 | |||
38 |
If you suppress an error, we recommend checking for the error condition explicitly: