Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class Event{
  2. protected $name;
  3. protected $callback;
  4. public function __construct($name, Callable $callable){
  5. $this->name = $name;
  6. }
  7. public function fire(array $args = null){
  8. return call_user_func_array($this->callback, $args);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement