| Total Complexity | 6 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | class Tool |
||
| 6 | { |
||
| 7 | private $name; |
||
| 8 | private $summary; |
||
| 9 | private $website; |
||
| 10 | private $command; |
||
| 11 | private $testCommand; |
||
| 12 | |||
| 13 | 14 | public function __construct(string $name, string $summary, string $website, Command $command, Command $testCommand) |
|
| 14 | { |
||
| 15 | 14 | $this->name = $name; |
|
| 16 | 14 | $this->summary = $summary; |
|
| 17 | 14 | $this->website = $website; |
|
| 18 | 14 | $this->command = $command; |
|
| 19 | 14 | $this->testCommand = $testCommand; |
|
| 20 | } |
||
| 21 | |||
| 22 | 4 | public function name(): string |
|
| 25 | } |
||
| 26 | |||
| 27 | 3 | public function summary(): string |
|
| 30 | } |
||
| 31 | |||
| 32 | 3 | public function website(): string |
|
| 33 | { |
||
| 34 | 3 | return $this->website; |
|
| 35 | } |
||
| 36 | |||
| 37 | 9 | public function command(): Command |
|
| 38 | { |
||
| 39 | 9 | return $this->command; |
|
| 40 | } |
||
| 41 | |||
| 42 | 2 | public function testCommand(): Command |
|
| 45 | } |
||
| 46 | } |
||
| 47 |