| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class UpperCaseMethodNamingStrategy implements MethodNamingStrategy |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Accepts the PHP class property name and returns an array of the names |
||
| 22 | * of acceptable getter methods |
||
| 23 | * |
||
| 24 | * @param string $propertyName |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | 5 | public function translateToGetter(string $propertyName): array |
|
| 28 | { |
||
| 29 | return [ |
||
| 30 | 5 | 'get' . ucfirst($propertyName), |
|
| 31 | 5 | 'is' . ucfirst($propertyName), |
|
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Accepts the PHP class property name and returns an array of the names |
||
| 37 | * of acceptable setter methods |
||
| 38 | * |
||
| 39 | * @param string $propertyName |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 5 | public function translateToSetter(string $propertyName): array |
|
| 45 | } |
||
| 46 | } |
||
| 47 |