X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/fakerphp/faker/src/Faker/Core
home
/
prisjneg
/
public_html
/
vendor
/
fakerphp
/
faker
/
src
/
Faker
/
Core
/
📁
..
📄
Barcode.php
(1.24 KB)
📄
Blood.php
(818 B)
📄
Color.php
(5.23 KB)
📄
Coordinates.php
(2.08 KB)
📄
DateTime.php
(6.16 KB)
📄
File.php
(23.15 KB)
📄
Number.php
(1.91 KB)
📄
Uuid.php
(2.01 KB)
📄
Version.php
(2.06 KB)
Editing: Blood.php
<?php declare(strict_types=1); namespace Faker\Core; use Faker\Extension; /** * @experimental This class is experimental and does not fall under our BC promise */ final class Blood implements Extension\BloodExtension { /** * @var string[] */ private array $bloodTypes = ['A', 'AB', 'B', 'O']; /** * @var string[] */ private array $bloodRhFactors = ['+', '-']; public function bloodType(): string { return Extension\Helper::randomElement($this->bloodTypes); } public function bloodRh(): string { return Extension\Helper::randomElement($this->bloodRhFactors); } public function bloodGroup(): string { return sprintf( '%s%s', $this->bloodType(), $this->bloodRh(), ); } }
Upload File
Create Folder