Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
59 / 59
100.00% covered (success)
100.00%
40 / 40
CRAP
100.00% covered (success)
100.00%
1 / 1
Contract
100.00% covered (success)
100.00%
59 / 59
100.00% covered (success)
100.00%
40 / 40
40
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getInqNombreapellido
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setInqNombreapellido
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getInqCi
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setInqCi
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getValGarantia
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setValGarantia
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getDate
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDate
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getText
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setText
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getGender
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setGender
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getStoreNumber
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setStoreNumber
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getId
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getDestination
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setDestination
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getValAlq
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setValAlq
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCntLanfort
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCntLanfort
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCntLlaves
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCntLlaves
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCntMedAgua
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCntMedAgua
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCntMedElec
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCntMedElec
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCntNeon
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCntNeon
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCntSwitch
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCntSwitch
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCntToma
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCntToma
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getCntVentana
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setCntVentana
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getMedElectrico
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMedElectrico
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getMedAgua
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 setMedAgua
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace App\Entity;
6
7use App\Repository\ContractRepository;
8use App\Type\Gender;
9use DateTime;
10use Doctrine\DBAL\Types\Types;
11use Doctrine\ORM\Mapping\Column;
12use Doctrine\ORM\Mapping\Entity;
13use Doctrine\ORM\Mapping\GeneratedValue;
14use Doctrine\ORM\Mapping\Id;
15
16#[Entity(repositoryClass: ContractRepository::class)]
17class Contract
18{
19    #[Column]
20    protected ?int $storeNumber = null;
21
22    #[Column, Id, GeneratedValue]
23    private ?int $id = null;
24
25    #[Column(length: 150)]
26    private ?string $inqNombreapellido = null;
27
28    #[Column(enumType: Gender::class)]
29    private Gender $gender;
30
31    #[Column(length: 11)]
32    private string $inqCi = '000000000-0';
33
34    #[Column(length: 50)]
35    private ?string $destination = null;
36
37    #[Column]
38    private ?float $valAlq = null;
39
40    #[Column]
41    private ?float $valGarantia = null;
42
43    #[Column(type: Types::DATE_MUTABLE)]
44    private DateTime $date;
45
46    #[Column]
47    private int $cntLanfort = 0;
48
49    #[Column]
50    private int $cntNeon = 0;
51
52    #[Column]
53    private int $cntSwitch = 0;
54
55    #[Column]
56    private int $cntToma = 0;
57
58    #[Column]
59    private int $cntVentana = 0;
60
61    #[Column]
62    private int $cntLlaves = 0;
63
64    #[Column]
65    private int $cntMedAgua = 0;
66
67    #[Column]
68    private int $cntMedElec = 0;
69
70    #[Column(length: 50)]
71    private string $medElectrico = '';
72
73    #[Column(length: 50)]
74    private string $medAgua = '';
75
76    #[Column(type: Types::TEXT, length: 65535, nullable: false)]
77    private string $text = '';
78
79    public function __construct()
80    {
81        $this->date = new DateTime();
82    }
83
84    public function getInqNombreapellido(): ?string
85    {
86        return $this->inqNombreapellido;
87    }
88
89    public function setInqNombreapellido(string $inqNombreapellido): static
90    {
91        $this->inqNombreapellido = $inqNombreapellido;
92
93        return $this;
94    }
95
96    public function getInqCi(): string
97    {
98        return $this->inqCi;
99    }
100
101    public function setInqCi(string $inqCi): static
102    {
103        $this->inqCi = $inqCi;
104
105        return $this;
106    }
107
108    public function getValGarantia(): ?float
109    {
110        return $this->valGarantia;
111    }
112
113    public function setValGarantia(float $valGarantia): static
114    {
115        $this->valGarantia = $valGarantia;
116
117        return $this;
118    }
119
120    public function getDate(): DateTime
121    {
122        return $this->date;
123    }
124
125    public function setDate(DateTime $date): static
126    {
127        $this->date = $date;
128
129        return $this;
130    }
131
132    public function getText(): string
133    {
134        return $this->text;
135    }
136
137    public function setText(string $text): static
138    {
139        $this->text = $text;
140
141        return $this;
142    }
143
144    public function getGender(): Gender
145    {
146        return $this->gender;
147    }
148
149    public function setGender(Gender $gender): static
150    {
151        $this->gender = $gender;
152
153        return $this;
154    }
155
156    public function getStoreNumber(): ?int
157    {
158        return $this->storeNumber;
159    }
160
161    public function setStoreNumber(int $storeNumber): static
162    {
163        $this->storeNumber = $storeNumber;
164
165        return $this;
166    }
167
168    public function getId(): ?int
169    {
170        return $this->id;
171    }
172
173    public function getDestination(): ?string
174    {
175        return $this->destination;
176    }
177
178    public function setDestination(string $destination): static
179    {
180        $this->destination = $destination;
181
182        return $this;
183    }
184
185    public function getValAlq(): ?float
186    {
187        return $this->valAlq;
188    }
189
190    public function setValAlq(float $valAlq): static
191    {
192        $this->valAlq = $valAlq;
193
194        return $this;
195    }
196
197    public function getCntLanfort(): int
198    {
199        return $this->cntLanfort;
200    }
201
202    public function setCntLanfort(int $cntLanfort): static
203    {
204        $this->cntLanfort = $cntLanfort;
205
206        return $this;
207    }
208
209    public function getCntLlaves(): int
210    {
211        return $this->cntLlaves;
212    }
213
214    public function setCntLlaves(int $cntLlaves): static
215    {
216        $this->cntLlaves = $cntLlaves;
217
218        return $this;
219    }
220
221    public function getCntMedAgua(): int
222    {
223        return $this->cntMedAgua;
224    }
225
226    public function setCntMedAgua(int $cntMedAgua): static
227    {
228        $this->cntMedAgua = $cntMedAgua;
229
230        return $this;
231    }
232
233    public function getCntMedElec(): int
234    {
235        return $this->cntMedElec;
236    }
237
238    public function setCntMedElec(int $cntMedElec): static
239    {
240        $this->cntMedElec = $cntMedElec;
241
242        return $this;
243    }
244
245    public function getCntNeon(): int
246    {
247        return $this->cntNeon;
248    }
249
250    public function setCntNeon(int $cntNeon): static
251    {
252        $this->cntNeon = $cntNeon;
253
254        return $this;
255    }
256
257    public function getCntSwitch(): int
258    {
259        return $this->cntSwitch;
260    }
261
262    public function setCntSwitch(int $cntSwitch): static
263    {
264        $this->cntSwitch = $cntSwitch;
265
266        return $this;
267    }
268
269    public function getCntToma(): int
270    {
271        return $this->cntToma;
272    }
273
274    public function setCntToma(int $cntToma): static
275    {
276        $this->cntToma = $cntToma;
277
278        return $this;
279    }
280
281    public function getCntVentana(): int
282    {
283        return $this->cntVentana;
284    }
285
286    public function setCntVentana(int $cntVentana): static
287    {
288        $this->cntVentana = $cntVentana;
289
290        return $this;
291    }
292
293    public function getMedElectrico(): string
294    {
295        return $this->medElectrico;
296    }
297
298    public function setMedElectrico(string $medElectrico): static
299    {
300        $this->medElectrico = $medElectrico;
301
302        return $this;
303    }
304
305    public function getMedAgua(): string
306    {
307        return $this->medAgua;
308    }
309
310    public function setMedAgua(string $medAgua): static
311    {
312        $this->medAgua = $medAgua;
313
314        return $this;
315    }
316}