getCommand(); } else { throw new TaskException($this, get_class($command) . " does not implement CommandInterface, so can't be passed into this task"); } } }