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

Ffprincipale::getDescrizione()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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