Ffprincipale   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 96
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 8
eloc 14
dl 0
loc 96
ccs 20
cts 20
cp 1
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getFfsecondarias() 0 3 1
A getId() 0 3 1
A __toString() 0 3 1
A getDescrizione() 0 3 1
A addFfsecondaria() 0 5 1
A setDescrizione() 0 5 1
A __construct() 0 3 1
A removeFfsecondaria() 0 3 1
1
<?php
2
3
namespace Fi\CoreBundle\Entity;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
use Doctrine\Common\Collections\Collection;
7
8
/**
9
 * Ffprincipale.
10
 */
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()
100
    {
101 1
        return $this->ffsecondarias;
102
    }
103
104 4
    public function __toString()
105
    {
106 4
        return $this->getDescrizione();
107
    }
108
}
109