You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 line
692B

  1. <?php
  2. namespace Lc\CaracoleBundle\Event\EntityManager;
  3. use Symfony\Contracts\EventDispatcher\Event;
  4. class EntityManagerEvent extends Event
  5. {
  6. const CREATE_EVENT = 'entity_manager_event.create';
  7. const UPDATE_EVENT = 'entity_manager_event.update';
  8. const DELETE_EVENT = 'entity_manager_event.delete';
  9. const PRE_CREATE_EVENT = 'entity_manager_event.pre_create';
  10. const PRE_UPDATE_EVENT = 'entity_manager_event.pre_update';
  11. const PRE_DELETE_EVENT = 'entity_manager_event.pre_delete';
  12. protected $entity;
  13. public function __construct($entity)
  14. {
  15. $this->entity = $entity;
  16. }
  17. public function getEntity()
  18. {
  19. return $this->entity;
  20. }
  21. }