Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class ImageProcessorName |
||
9 | { |
||
10 | /** @var string[] */ |
||
11 | private const NAMES = ['neato', 'dot']; |
||
12 | |||
13 | private readonly string $name; |
||
14 | |||
15 | 13 | public function __construct(string $name) |
|
21 | } |
||
22 | |||
23 | 9 | public function command(): string |
|
26 | } |
||
27 | |||
28 | 9 | public function value(): string |
|
29 | { |
||
30 | 9 | return ucfirst($this->name); |
|
31 | } |
||
32 | |||
33 | 7 | public function isDot(): bool |
|
36 | } |
||
37 | } |
||
38 |