Event.php 664 B

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