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