Code Duplication    Length = 10-10 lines in 3 locations

lib/Doctrine/ODM/MongoDB/Event/OnFlushEventArgs.php 1 location

@@ 17-26 (lines=10) @@
14
 *
15
 * @final
16
 */
17
class OnFlushEventArgs extends ManagerEventArgs
18
{
19
    public function __construct(ObjectManager $objectManager)
20
    {
21
        if (self::class !== static::class) {
22
            @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
23
        }
24
        parent::__construct($objectManager);
25
    }
26
}
27

lib/Doctrine/ODM/MongoDB/Event/PostFlushEventArgs.php 1 location

@@ 17-26 (lines=10) @@
14
 *
15
 * @final
16
 */
17
class PostFlushEventArgs extends ManagerEventArgs
18
{
19
    public function __construct(ObjectManager $objectManager)
20
    {
21
        if (self::class !== static::class) {
22
            @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
23
        }
24
        parent::__construct($objectManager);
25
    }
26
}
27

lib/Doctrine/ODM/MongoDB/Event/PreFlushEventArgs.php 1 location

@@ 17-26 (lines=10) @@
14
 *
15
 * @final
16
 */
17
class PreFlushEventArgs extends ManagerEventArgs
18
{
19
    public function __construct(ObjectManager $objectManager)
20
    {
21
        if (self::class !== static::class) {
22
            @trigger_error(sprintf('The class "%s" extends "%s" which will be final in MongoDB ODM 2.0.', static::class, self::class), E_USER_DEPRECATED);
23
        }
24
        parent::__construct($objectManager);
25
    }
26
}
27