Dietcube\Events\ExecuteActionEvent::setExecutable PHP Method

setExecutable() public method

public setExecutable ( callable $executable )
$executable callable
    public function setExecutable($executable)
    {
        if (!is_callable($executable)) {
            throw new \InvalidArgumentException("Passed argument for setExecutable is not callable.");
        }
        $this->executable = $executable;
        return $this;
    }