PreCreateEventTest.php 509 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Test\Michel\EventDispatcher\Event;
  3. use Michel\EventDispatcher\Event;
  4. final class PreCreateEventTest extends Event
  5. {
  6. private object $object;
  7. /**
  8. * PreCreateEvent constructor.
  9. *
  10. * @param object $object
  11. */
  12. public function __construct(object $object)
  13. {
  14. $this->object = $object;
  15. }
  16. /**
  17. * Get the associated object.
  18. *
  19. * @return object
  20. */
  21. public function getObject(): object
  22. {
  23. return $this->object;
  24. }
  25. }