| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class CommandExists extends AbstractRequirement |
||
| 9 | { |
||
| 10 | private $commandName; |
||
| 11 | |||
| 12 | public function __construct(array $servers, string $commandName) |
||
| 13 | { |
||
| 14 | parent::__construct($servers); |
||
| 15 | $this->commandName = $commandName; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getMessage() : string |
||
| 19 | { |
||
| 20 | return sprintf('<ok>[OK]</> <command>%s</> command exists', $this->commandName); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getChecker() : Task |
||
| 28 | } |
||
| 29 | |||
| 30 | private function isWindows() : bool |
||
| 35 |