Returns whether the command has any sub-commands.
public hasSubCommands ( ) : boolean | ||
return | 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()); }