Event.php 616 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace JMS\SerializerBundle\Serializer\EventDispatcher;
  3. use JMS\SerializerBundle\Serializer\VisitorInterface;
  4. class Event
  5. {
  6. protected $type;
  7. private $object;
  8. private $visitor;
  9. public function __construct(VisitorInterface $visitor, $object, array $type)
  10. {
  11. $this->visitor = $visitor;
  12. $this->object = $object;
  13. $this->type = $type;
  14. }
  15. public function getVisitor()
  16. {
  17. return $this->visitor;
  18. }
  19. public function getType()
  20. {
  21. return $this->type;
  22. }
  23. public function getObject()
  24. {
  25. return $this->object;
  26. }
  27. }