Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Event{
- protected $name;
- protected $callback;
- public function __construct($name, Callable $callable){
- $this->name = $name;
- }
- public function fire(array $args = null){
- return call_user_func_array($this->callback, $args);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement