public function __construct($callback) { if (!is_callable($callback)) { throw new ComponentException(__('"%s" is not a valid callable structure', $callback)); } $this->callback = $callback; }