Total Complexity | 15 |
Total Lines | 125 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 |
|
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 |
|
123 | } |
||
124 | |||
125 | /** |
||
126 | * @param string $email |
||
127 | * |
||
128 | * @return LawFormation |
||
129 | */ |
||
130 | 1 | public function setEmail(string $email): LawFormation |
|
135 | } |
||
136 | } |
||
137 |