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