LawFormation   A
last analyzed

Complexity

Total Complexity 15

Size/Duplication

Total Lines 125
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 21
dl 0
loc 125
ccs 25
cts 25
cp 1
rs 10
c 1
b 0
f 0
wmc 15

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setOrganizationalForm() 0 5 1
A getEmail() 0 3 2
A setPhone() 0 5 1
A getName() 0 3 2
A getAddress() 0 3 2
A setName() 0 5 1
A getPhone() 0 3 2
A getOrganizationalForm() 0 3 2
A setEmail() 0 5 1
A setAddress() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SomeWork\Minjust\Entity;
6
7
/**
8
 * @see \SomeWork\Minjust\Tests\Unit\Entity\LawFormationTest
9
 */
10
class LawFormation
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $organizationalForm = '';
16
17
    /**
18
     * @var string
19
     */
20
    protected $name = '';
21
22
    /**
23
     * @var string
24
     */
25
    protected $address = '';
26
27
    /**
28
     * @var string
29
     */
30
    protected $phone = '';
31
32
    /**
33
     * @var string
34
     */
35
    protected $email = '';
36
37
    /**
38
     * @return string
39
     */
40 1
    public function getOrganizationalForm(): string
41
    {
42 1
        return $this->organizationalForm ?: '';
43
    }
44
45
    /**
46
     * @param string $organizationalForm
47
     *
48
     * @return LawFormation
49
     */
50 1
    public function setOrganizationalForm(string $organizationalForm): LawFormation
51
    {
52 1
        $this->organizationalForm = $organizationalForm;
53
54 1
        return $this;
55
    }
56
57
    /**
58
     * @return string
59
     */
60 1
    public function getName(): string
61
    {
62 1
        return $this->name ?: '';
63
    }
64
65
    /**
66
     * @param string $name
67
     *
68
     * @return LawFormation
69
     */
70 1
    public function setName(string $name): LawFormation
71
    {
72 1
        $this->name = $name;
73
74 1
        return $this;
75
    }
76
77
    /**
78
     * @return string
79
     */
80 1
    public function getAddress(): string
81
    {
82 1
        return $this->address ?: '';
83
    }
84
85
    /**
86
     * @param string $address
87
     *
88
     * @return LawFormation
89
     */
90 1
    public function setAddress(string $address): LawFormation
91
    {
92 1
        $this->address = $address;
93
94 1
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100 1
    public function getPhone(): string
101
    {
102 1
        return $this->phone ?: '';
103
    }
104
105
    /**
106
     * @param string $phone
107
     *
108
     * @return LawFormation
109
     */
110 1
    public function setPhone(string $phone): LawFormation
111
    {
112 1
        $this->phone = $phone;
113
114 1
        return $this;
115
    }
116
117
    /**
118
     * @return string
119
     */
120 1
    public function getEmail(): string
121
    {
122 1
        return $this->email ?: '';
123
    }
124
125
    /**
126
     * @param string $email
127
     *
128
     * @return LawFormation
129
     */
130 1
    public function setEmail(string $email): LawFormation
131
    {
132 1
        $this->email = $email;
133
134 1
        return $this;
135
    }
136
}
137