/** * Check if command is executeable * * @return bool */ public function isExecuteable() { // Command must be set if (empty($this->command)) { return false; } // Only check command paths for local commands if (!$this instanceof RemoteCommandBuilder && !\CliTools\Utility\UnixUtility::checkExecutable($this->command)) { return false; } return true; }