Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class Civility extends AbstractStaticEntity |
||
21 | { |
||
22 | const MR = 1; |
||
23 | const MRS = 2; |
||
24 | |||
25 | private $gender; |
||
26 | private $shortName; |
||
27 | |||
28 | static function getDataSet(): array |
||
29 | { |
||
30 | return [ |
||
31 | self::MR => [ |
||
32 | 'gender' => 'Male', |
||
33 | 'shortName' => 'Mr.', |
||
34 | ], |
||
35 | self::MRS => [ |
||
36 | 'gender' => 'Female', |
||
37 | 'shortName' => 'Mrs', |
||
38 | ], |
||
39 | ]; |
||
40 | } |
||
41 | |||
42 | public function getGender(): string |
||
43 | { |
||
44 | return $this->gender; |
||
45 | } |
||
46 | |||
47 | public function getShortName(): string |
||
50 | } |
||
51 | } |
||
52 |