Passed
Push — develop ( e3219b...3a1d34 )
by Laurent
01:38
created

OutputCompany::address()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the G.L.S.R. Apps package.
7
 *
8
 * (c) Dev-Int Création <[email protected]>.
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Company\Application\Company\DTO;
15
16
use Company\Domain\Model\Company;
17
18
class OutputCompany
19
{
20
    private string $uuid;
21
    private string $companyName;
22
    private string $address;
23
    private string $zipCode;
24
    private string $town;
25
    private string $country;
26
    private string $phone;
27
    private string $facsimile;
28
    private string $email;
29
    private string $contact;
30
    private string $cellphone;
31
32
    public function __construct(Company $company)
33
    {
34
        $this->uuid = $company->uuid();
35
        $this->companyName = $company->contactName();
36
        $this->address = $company->address();
37
        $this->zipCode = $company->zipCode();
38
        $this->town = $company->town();
39
        $this->country = $company->country();
40
        $this->phone = $company->phone();
41
        $this->facsimile = $company->facsimile();
42
        $this->email = $company->email();
43
        $this->contact = $company->contactName();
44
        $this->cellphone = $company->cellphone();
45
    }
46
47
    public function uuid(): string
48
    {
49
        return $this->uuid;
50
    }
51
52
    public function companyName(): string
53
    {
54
        return $this->companyName;
55
    }
56
57
    public function address(): string
58
    {
59
        return $this->address;
60
    }
61
62
    public function zipCode(): string
63
    {
64
        return $this->zipCode;
65
    }
66
67
    public function town(): string
68
    {
69
        return $this->town;
70
    }
71
72
    public function country(): string
73
    {
74
        return $this->country;
75
    }
76
77
    public function phone(): string
78
    {
79
        return $this->phone;
80
    }
81
82
    public function facsimile(): string
83
    {
84
        return $this->facsimile;
85
    }
86
87
    public function email(): string
88
    {
89
        return $this->email;
90
    }
91
92
    public function contact(): string
93
    {
94
        return $this->contact;
95
    }
96
97
    public function cellphone(): string
98
    {
99
        return $this->cellphone;
100
    }
101
}
102