Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function __construct(Command $defaultCommand) |
||
25 | { |
||
26 | $commandName = $defaultCommand->getName(); |
||
27 | |||
28 | if (!is_string($commandName)) { |
||
29 | throw new LicenseCheckException('Invalid command name.'); |
||
30 | } |
||
31 | |||
32 | parent::__construct($commandName); |
||
33 | $this->add($defaultCommand); |
||
34 | $this->setDefaultCommand($commandName, true); |
||
35 | } |
||
36 | } |
||
37 |