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