Returns whether the command has any sub-commands.
public hasSubCommands ( ) : boolean | ||
Résultat | boolean | Returns `true` if the command has sub-commands and `false` otherwise. |
public function testHasNoSubCommands() { $command = new Command(new CommandConfig('command')); $this->assertFalse($command->hasSubCommands()); }