| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class Company implements CompanyExtensionInterface, GeneratorAwareExtensionInterface, RandomizerAwareExtensionInterface |
||
| 14 | { |
||
| 15 | use GeneratorAwareExtensionTrait; |
||
| 16 | use RandomizerAwareExtensionTrait; |
||
| 17 | |||
| 18 | /** @var string[] */ |
||
| 19 | protected array $formats = [ |
||
| 20 | '{{lastName}} {{companySuffix}}', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** @var string[] */ |
||
| 24 | protected array $companySuffix = ['Ltd']; |
||
| 25 | |||
| 26 | /** @var string[] */ |
||
| 27 | protected array $jobTitleFormat = [ |
||
| 28 | '{{word}}', |
||
| 29 | ]; |
||
| 30 | |||
| 31 | 1 | public function company(): string |
|
| 36 | } |
||
| 37 | |||
| 38 | 2 | public function companySuffix(): string |
|
| 39 | { |
||
| 40 | 2 | return $this->randomizer->randomElement($this->companySuffix); |
|
| 41 | } |
||
| 42 | |||
| 43 | 1 | public function jobTitle(): string |
|
| 48 | } |
||
| 49 | } |
||
| 50 |