| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace PhpDevCommunity\PaperORM\Event;
- use PhpDevCommunity\Listener\Event;
- use PhpDevCommunity\PaperORM\Entity\EntityInterface;
- class PreCreateEvent extends Event
- {
- private EntityInterface $entity;
- /**
- * PreCreateEvent constructor.
- *
- * @param EntityInterface $entity
- */
- public function __construct(EntityInterface $entity)
- {
- $this->entity = $entity;
- }
- public function getEntity(): EntityInterface
- {
- return $this->entity;
- }
- }
|