/** * Set the callback to be invoked by the action or filter. * * @param callable $callback The callback to be invoked * * @return $this */ public function setCallback(callable $callback) { $this->callback = new Callback($callback); $this->callbackParamCount = $this->callback->parameterCount(); return $this; }