| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class SexType extends EnumType |
||
| 10 | { |
||
| 11 | 1 | public function __construct() |
|
| 12 | { |
||
| 13 | 1 | $config = [ |
|
| 14 | 'name' => 'Sex', |
||
| 15 | 'description' => 'Genders', |
||
| 16 | 'values' => [ |
||
| 17 | 'not_known' => [ |
||
| 18 | 'value' => 0, |
||
| 19 | 'description' => 'inconnu', |
||
| 20 | ], |
||
| 21 | 'male' => [ |
||
| 22 | 'value' => 1, |
||
| 23 | 'description' => 'masculin', |
||
| 24 | ], |
||
| 25 | 'female' => [ |
||
| 26 | 'value' => 2, |
||
| 27 | 'description' => 'féminin', |
||
| 28 | ], |
||
| 29 | ], |
||
| 30 | ]; |
||
| 31 | |||
| 32 | 1 | parent::__construct($config); |
|
| 33 | } |
||
| 35 |