Passed
Push — master ( 74531a...944a70 )
by Andrea
17:56
created

Ffprincipale   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 96
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

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
/**
6
 * Ffprincipale.
7
 */
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()
97
    {
98 1
        return $this->ffsecondarias;
99
    }
100
101 4
    public function __toString()
102
    {
103 4
        return $this->getDescrizione();
104
    }
105
}
106