Upgrade framework
This commit is contained in:
1 parent
1648a5cd42
commit
4fcf6fffcc
10548 files changed
+693131
-466691
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Faker\Provider;
|
||||
|
||||
class Medical extends Base
|
||||
{
|
||||
protected static $bloodTypes = ['A', 'AB', 'B', 'O'];
|
||||
|
||||
protected static $bloodRhFactors = ['+', '-'];
|
||||
|
||||
/**
|
||||
* @example 'AB'
|
||||
*/
|
||||
public static function bloodType(): string
|
||||
{
|
||||
return static::randomElement(static::$bloodTypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @example '+'
|
||||
*/
|
||||
public static function bloodRh(): string
|
||||
{
|
||||
return static::randomElement(static::$bloodRhFactors);
|
||||
}
|
||||
|
||||
/**
|
||||
* @example 'AB+'
|
||||
*/
|
||||
public function bloodGroup(): string
|
||||
{
|
||||
return $this->generator->parse('{{bloodType}}{{bloodRh}}');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user