getParentCommand() public méthode

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