Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class SetterMethodName |
||
8 | { |
||
9 | 75 | private function __construct(private readonly string $name) |
|
10 | { |
||
11 | 75 | } |
|
12 | |||
13 | 75 | public function getName(): string |
|
14 | { |
||
15 | 75 | return $this->name; |
|
16 | } |
||
17 | |||
18 | 75 | public static function fromSnakeCasePropertyName(string $propertyName): self |
|
28 | 75 | ) |
|
29 | 75 | ) |
|
30 | 75 | ); |
|
33 |