41 lines
751 B
PHP
41 lines
751 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Engelsystem\Test\Unit;
|
|
|
|
use Faker\Provider\Base;
|
|
|
|
class FakerProvider extends Base
|
|
{
|
|
/** @var string[] */
|
|
protected static array $pronouns = [
|
|
'fae',
|
|
'ae',
|
|
'e',
|
|
'ey',
|
|
'he',
|
|
'per',
|
|
'she',
|
|
'tey',
|
|
'they',
|
|
've',
|
|
'xe',
|
|
'ze',
|
|
'zie',
|
|
];
|
|
|
|
/** @var string[] */
|
|
protected static array $shirtSizes = ['S', 'S-G', 'M', 'M-G', 'L', 'L-G', 'XL', 'XL-G', '2XL', '3XL', '4XL'];
|
|
|
|
public function pronoun(): string
|
|
{
|
|
return static::randomElement(static::$pronouns);
|
|
}
|
|
|
|
public function shirtSize(): string
|
|
{
|
|
return static::randomElement(static::$shirtSizes);
|
|
}
|
|
}
|