AddressExtension.php
2 years ago
BarcodeExtension.php
2 years ago
BloodExtension.php
2 years ago
ColorExtension.php
2 years ago
CompanyExtension.php
2 years ago
CountryExtension.php
2 years ago
DateTimeExtension.php
2 years ago
Extension.php
2 years ago
ExtensionNotFound.php
2 years ago
FileExtension.php
2 years ago
GeneratorAwareExtension.php
2 years ago
GeneratorAwareExtensionTrait.php
2 years ago
Helper.php
2 years ago
NumberExtension.php
2 years ago
PersonExtension.php
2 years ago
PhoneNumberExtension.php
2 years ago
UuidExtension.php
2 years ago
VersionExtension.php
2 years ago
PersonExtension.php
59 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @license MIT |
| 4 | * |
| 5 | * Modified by impress-org on 30-October-2023 using Strauss. |
| 6 | * @see https://github.com/BrianHenryIE/strauss |
| 7 | */ |
| 8 | |
| 9 | namespace Give\Vendors\Faker\Extension; |
| 10 | |
| 11 | /** |
| 12 | * @experimental This interface is experimental and does not fall under our BC promise |
| 13 | */ |
| 14 | interface PersonExtension extends Extension |
| 15 | { |
| 16 | public const GENDER_FEMALE = 'female'; |
| 17 | public const GENDER_MALE = 'male'; |
| 18 | |
| 19 | /** |
| 20 | * @param string|null $gender 'male', 'female' or null for any |
| 21 | * |
| 22 | * @example 'John Doe' |
| 23 | */ |
| 24 | public function name(?string $gender = null): string; |
| 25 | |
| 26 | /** |
| 27 | * @param string|null $gender 'male', 'female' or null for any |
| 28 | * |
| 29 | * @example 'John' |
| 30 | */ |
| 31 | public function firstName(?string $gender = null): string; |
| 32 | |
| 33 | public function firstNameMale(): string; |
| 34 | |
| 35 | public function firstNameFemale(): string; |
| 36 | |
| 37 | /** |
| 38 | * @example 'Doe' |
| 39 | */ |
| 40 | public function lastName(): string; |
| 41 | |
| 42 | /** |
| 43 | * @example 'Mrs.' |
| 44 | * |
| 45 | * @param string|null $gender 'male', 'female' or null for any |
| 46 | */ |
| 47 | public function title(?string $gender = null): string; |
| 48 | |
| 49 | /** |
| 50 | * @example 'Mr.' |
| 51 | */ |
| 52 | public function titleMale(): string; |
| 53 | |
| 54 | /** |
| 55 | * @example 'Mrs.' |
| 56 | */ |
| 57 | public function titleFemale(): string; |
| 58 | } |
| 59 |