Total Complexity | 8 |
Total Lines | 96 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class Ffprincipale |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | */ |
||
13 | private $id; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $descrizione; |
||
19 | |||
20 | /** |
||
21 | * @var \Doctrine\Common\Collections\Collection |
||
22 | */ |
||
23 | private $ffsecondarias; |
||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | */ |
||
28 | 6 | public function __construct() |
|
29 | { |
||
30 | 6 | $this->ffsecondarias = new \Doctrine\Common\Collections\ArrayCollection(); |
|
31 | 6 | } |
|
32 | |||
33 | /** |
||
34 | * Get id. |
||
35 | * |
||
36 | * @return int |
||
37 | */ |
||
38 | 6 | public function getId() |
|
39 | { |
||
40 | 6 | return $this->id; |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * Set descrizione. |
||
45 | * |
||
46 | * @param string $descrizione |
||
47 | * |
||
48 | * @return ffprincipale |
||
49 | */ |
||
50 | 4 | public function setDescrizione($descrizione) |
|
51 | { |
||
52 | 4 | $this->descrizione = $descrizione; |
|
53 | |||
54 | 4 | return $this; |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * Get descrizione. |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | 10 | public function getDescrizione() |
|
63 | { |
||
64 | 10 | return $this->descrizione; |
|
65 | } |
||
66 | |||
67 | /** |
||
68 | * Add ffsecondarias. |
||
69 | * |
||
70 | * @param \Fi\CoreBundle\Entity\Ffsecondaria $ffsecondarias |
||
71 | * |
||
72 | * @return ffprincipale |
||
73 | */ |
||
74 | 1 | public function addFfsecondaria(\Fi\CoreBundle\Entity\Ffsecondaria $ffsecondarias) |
|
75 | { |
||
76 | 1 | $this->ffsecondarias[] = $ffsecondarias; |
|
77 | |||
78 | 1 | return $this; |
|
79 | } |
||
80 | |||
81 | /** |
||
82 | * Remove ffsecondarias. |
||
83 | * |
||
84 | * @param \Fi\CoreBundle\Entity\Ffsecondaria $ffsecondarias |
||
85 | */ |
||
86 | 1 | public function removeFfsecondaria(\Fi\CoreBundle\Entity\Ffsecondaria $Ffsecondarias) |
|
87 | { |
||
88 | 1 | $this->ffsecondarias->removeElement($Ffsecondarias); |
|
89 | 1 | } |
|
90 | |||
91 | /** |
||
92 | * Get ffsecondarias. |
||
93 | * |
||
94 | * @return \Doctrine\Common\Collections\Collection |
||
95 | */ |
||
96 | 1 | public function getFfsecondarias() |
|
99 | } |
||
100 | |||
101 | 4 | public function __toString() |
|
104 | } |
||
105 | } |
||
106 |