Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0185 |
Changes | 0 |
1 | <?php |
||
29 | 4 | public function __construct(string $className, DocumentManager $dm) |
|
30 | { |
||
31 | 4 | if (self::class !== static::class) { |
|
32 | @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED); |
||
|
|||
33 | } |
||
34 | 4 | $this->className = $className; |
|
35 | |||
36 | 4 | parent::__construct($dm); |
|
37 | 4 | } |
|
38 | |||
62 |
If you suppress an error, we recommend checking for the error condition explicitly: