public function __construct($name, callable $callback = null) { $this->name = $name; $this->callback = $callback; }