| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Blood implements BloodExtensionInterface, RandomizerAwareExtensionInterface |
||
| 12 | { |
||
| 13 | use RandomizerAwareExtensionTrait; |
||
| 14 | |||
| 15 | /** @var string[] */ |
||
| 16 | protected array $bloodTypes = ['A', 'AB', 'B', 'O']; |
||
| 17 | |||
| 18 | /** @var string[] */ |
||
| 19 | protected array $bloodRhFactors = ['+', '-']; |
||
| 20 | |||
| 21 | 2 | public function bloodType(): string |
|
| 24 | } |
||
| 25 | |||
| 26 | 2 | public function bloodRh(): string |
|
| 27 | { |
||
| 28 | 2 | return $this->randomizer->randomElement($this->bloodRhFactors); |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function bloodGroup(): string |
|
| 34 | } |
||
| 35 | } |
||
| 36 |