| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Gender extends Enum |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * {@inheritDoc} |
||
| 16 | */ |
||
| 17 | 1 | protected static function labels(): array |
|
| 18 | { |
||
| 19 | return [ |
||
| 20 | 1 | 'male' => trans('Male'), |
|
| 21 | 1 | 'female' => trans('Female'), |
|
| 22 | 1 | 'undefined' => trans('Undefined'), |
|
| 23 | ]; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Return specified title based on the current enum. |
||
| 28 | * |
||
| 29 | * @return string|null |
||
| 30 | */ |
||
| 31 | protected function getTitle(): ?string |
||
| 37 | } |
||
| 38 | } |
||
| 39 |