Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Drupal\example;
  4.  
  5. use Symfony\Component\EventDispatcher\Event;
  6.  
  7. class ExampleEvent extends Event
  8. {
  9. protected $value;
  10.  
  11. public function __construct($value)
  12. {
  13. $this->value = $value;
  14. }
  15.  
  16. public function getValue()
  17. {
  18. return $this->value;
  19. }
  20.  
  21. public function setValue($value)
  22. {
  23. $this->value = $value;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement