您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

28 行
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. }