Code Duplication    Length = 9-9 lines in 2 locations

lib/Doctrine/ODM/MongoDB/PersistentCollection.php 1 location

@@ 26-34 (lines=9) @@
23
    /**
24
     * @param BaseCollection $coll
25
     */
26
    public function __construct(BaseCollection $coll, DocumentManager $dm, UnitOfWork $uow)
27
    {
28
        if (self::class !== static::class) {
29
            @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
30
        }
31
        $this->coll = $coll;
32
        $this->dm   = $dm;
33
        $this->uow  = $uow;
34
    }
35
}
36

lib/Doctrine/ODM/MongoDB/Utility/LifecycleEventManager.php 1 location

@@ 38-46 (lines=9) @@
35
    /** @var UnitOfWork */
36
    private $uow;
37
38
    public function __construct(DocumentManager $dm, UnitOfWork $uow, EventManager $evm)
39
    {
40
        if (self::class !== static::class) {
41
            @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
42
        }
43
        $this->dm  = $dm;
44
        $this->evm = $evm;
45
        $this->uow = $uow;
46
    }
47
48
    /**
49
     * @param mixed $id