getParentCommand() public method

Returns the parent command.
public getParentCommand ( ) : Command
return Command The parent command.
Ejemplo n.º 1
0
 public function testGetParentCommand()
 {
     $parentCommand = new Command(new CommandConfig('parent'));
     $command = new Command(new CommandConfig('command'), null, $parentCommand);
     $this->assertSame($parentCommand, $command->getParentCommand());
 }