Code Duplication    Length = 7-7 lines in 2 locations

src/Mapper/EventTriggers.php 2 locations

@@ 77-83 (lines=7) @@
74
     *
75
     * @return \League\Event\EventInterface|Delete
76
     */
77
    protected function triggerBeforeDelete(EntityInterface $entity)
78
    {
79
        $event = new Delete($entity);
80
        $event->setAction(Delete::ACTION_BEFORE_DELETE);
81
        return Orm::getEmitter($this->getEntityClassName())
82
            ->emit($event);
83
    }
84
85
    /**
86
     * Triggers the after delete event
@@ 92-98 (lines=7) @@
89
     *
90
     * @return \League\Event\EventInterface|Delete
91
     */
92
    protected function triggerAfterDelete(EntityInterface $entity)
93
    {
94
        $event = new Delete($entity);
95
        $event->setAction(Delete::ACTION_AFTER_DELETE);
96
        return Orm::getEmitter($this->getEntityClassName())
97
            ->emit($event);
98
    }
99
100
    abstract public function getEntityClassName();
101
}