/** * {@inheritdoc} */ public function hasCommands() { return !$this->commands->isEmpty(); }
/** * Returns whether the command has any sub-commands. * * @return bool Returns `true` if the command has sub-commands and `false` * otherwise. */ public function hasSubCommands() { return !$this->subCommands->isEmpty(); }