Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Faker\Extension;
4
 
5
/**
6
 * @experimental This interface is experimental and does not fall under our BC promise
7
 */
8
interface PersonExtension extends Extension
9
{
10
    public const GENDER_FEMALE = 'female';
11
    public const GENDER_MALE = 'male';
12
 
13
    /**
14
     * @param string|null $gender 'male', 'female' or null for any
15
     *
16
     * @example 'John Doe'
17
     */
18
    public function name(?string $gender = null): string;
19
 
20
    /**
21
     * @param string|null $gender 'male', 'female' or null for any
22
     *
23
     * @example 'John'
24
     */
25
    public function firstName(?string $gender = null): string;
26
 
27
    public function firstNameMale(): string;
28
 
29
    public function firstNameFemale(): string;
30
 
31
    /**
32
     * @example 'Doe'
33
     */
34
    public function lastName(): string;
35
 
36
    /**
37
     * @example 'Mrs.'
38
     *
39
     * @param string|null $gender 'male', 'female' or null for any
40
     */
41
    public function title(?string $gender = null): string;
42
 
43
    /**
44
     * @example 'Mr.'
45
     */
46
    public function titleMale(): string;
47
 
48
    /**
49
     * @example 'Mrs.'
50
     */
51
    public function titleFemale(): string;
52
}