getParentCommand() 공개 메소드

Returns the parent command.
public getParentCommand ( ) : Command
리턴 Command The parent command.
예제 #1
0
 public function testGetParentCommand()
 {
     $parentCommand = new Command(new CommandConfig('parent'));
     $command = new Command(new CommandConfig('command'), null, $parentCommand);
     $this->assertSame($parentCommand, $command->getParentCommand());
 }