|
1234567891011121314151617181920212223242526272829303132 |
- <?php
-
- namespace Lc\ShopBundle\Event\EntityManager;
-
- use Symfony\Contracts\EventDispatcher\Event;
-
- /**
- * class EntityEvent.
- *
- * @author Simon Vieille <simon@deblan.fr>
- */
- class EntityManagerEvent extends Event
- {
- const CREATE_EVENT = 'entity_manager_event.create';
- const UPDATE_EVENT = 'entity_manager_event.update';
- const DELETE_EVENT = 'entity_manager_event.delete';
- const PRE_CREATE_EVENT = 'entity_manager_event.pre_create';
- const PRE_UPDATE_EVENT = 'entity_manager_event.pre_update';
- const PRE_DELETE_EVENT = 'entity_manager_event.pre_delete';
-
- protected $entity;
-
- public function __construct($entity)
- {
- $this->entity = $entity;
- }
-
- public function getEntity()
- {
- return $this->entity;
- }
- }
|