hasNamedSubCommands() 공개 메소드

Returns whether the command has any commands that are not anonymous.
또한 보기: getNamedSubCommands()
public hasNamedSubCommands ( ) : boolean
리턴 boolean Returns `true` if the command has named commands and `false` otherwise.
예제 #1
0
 public function testHasNoNamedSubCommands()
 {
     $config = new CommandConfig('command');
     $subConfig = new SubCommandConfig('sub');
     $subConfig->markAnonymous();
     $config->addSubCommandConfig($subConfig);
     $command = new Command($config);
     $this->assertFalse($command->hasNamedSubCommands());
 }