Completed
Push — main ( fffb13...d8afdd )
by Laurent
139:07 queued 124:29
created

Contact::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 9.7
c 0
b 0
f 0
cc 1
nc 1
nop 7
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Domain\Model;
6
7
use Domain\Model\Common\VO\ContactAddress;
8
use Domain\Model\Common\VO\EmailField;
9
use Domain\Model\Common\VO\NameField;
10
11
class Contact
12
{
13
    /**
14
     * @var string name Company Name
15
     */
16
    protected $name;
17
18
    /**
19
     * @var string Company address
20
     */
21
    protected $address;
22
23
    /**
24
     * @var string Company phone number
25
     */
26
    protected $phone;
27
28
    /**
29
     * @var string Company fax number
30
     */
31
    protected $facsimile;
32
33
    /**
34
     * @var string Company email
35
     */
36
    protected $email;
37
38
    /**
39
     * @var string Company contact
40
     */
41
    protected $contact;
42
43
    /**
44
     * @var string Company cellphone
45
     */
46
    protected $cellphone;
47
48
    /**
49
     * Contact constructor.
50
     *
51
     * @param NameField      $name
52
     * @param ContactAddress $address
53
     * @param string         $phone
54
     * @param string         $facsimile
55
     * @param EmailField     $email
56
     * @param string         $contact
57
     * @param string         $cellphone
58
     */
59
    public function __construct(
60
        NameField $name,
61
        ContactAddress $address,
62
        string $phone,
63
        string $facsimile,
64
        EmailField $email,
65
        string $contact,
66
        string $cellphone
67
    ) {
68
        $this->name = $name->getValue();
69
        $this->address = $address->getValue();
70
        $this->phone = $phone;
71
        $this->facsimile = $facsimile;
72
        $this->email = $email->getValue();
73
        $this->contact = $contact;
74
        $this->cellphone = $cellphone;
75
    }
76
}
77