Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | class Company extends Contact |
||
23 | { |
||
24 | public static function create( |
||
25 | ContactUuid $uuid, |
||
26 | NameField $name, |
||
27 | string $address, |
||
28 | string $zipCode, |
||
29 | string $town, |
||
30 | string $country, |
||
31 | PhoneField $phone, |
||
32 | PhoneField $facsimile, |
||
33 | EmailField $email, |
||
34 | string $contact, |
||
35 | PhoneField $gsm |
||
36 | ): self { |
||
37 | return new self( |
||
38 | $uuid, |
||
39 | $name, |
||
40 | $address, |
||
41 | $zipCode, |
||
42 | $town, |
||
43 | $country, |
||
44 | $phone, |
||
45 | $facsimile, |
||
46 | $email, |
||
47 | $contact, |
||
48 | $gsm |
||
49 | ); |
||
50 | } |
||
51 | |||
52 | final public function renameCompany(NameField $name): void |
||
56 | } |
||
57 | } |
||
58 |