Passed
Push — master ( 17e906...d315bd )
by Andrea
40:07 queued 35:20
created

Ffprincipale::getDescrizione()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
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
    public function __construct()
29
    {
30
        $this->ffsecondarias = new \Doctrine\Common\Collections\ArrayCollection();
31
    }
32
33
    /**
34
     * Get id.
35
     *
36
     * @return int
37
     */
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
43
    /**
44
     * Set descrizione.
45
     *
46
     * @param string $descrizione
47
     *
48
     * @return ffprincipale
49
     */
50
    public function setDescrizione($descrizione)
51
    {
52
        $this->descrizione = $descrizione;
53
54
        return $this;
55
    }
56
57
    /**
58
     * Get descrizione.
59
     *
60
     * @return string
61
     */
62
    public function getDescrizione()
63
    {
64
        return $this->descrizione;
65
    }
66
67
    /**
68
     * Add ffsecondarias.
69
     *
70
     * @param \Fi\CoreBundle\Entity\Ffsecondaria $ffsecondarias
71
     *
72
     * @return ffprincipale
73
     */
74
    public function addFfsecondaria(\Fi\CoreBundle\Entity\Ffsecondaria $ffsecondarias)
75
    {
76
        $this->ffsecondarias[] = $ffsecondarias;
77
78
        return $this;
79
    }
80
81
    /**
82
     * Remove ffsecondarias.
83
     *
84
     * @param \Fi\CoreBundle\Entity\Ffsecondaria $ffsecondarias
85
     */
86
    public function removeFfsecondaria(\Fi\CoreBundle\Entity\Ffsecondaria $Ffsecondarias)
87
    {
88
        $this->ffsecondarias->removeElement($Ffsecondarias);
89
    }
90
91
    /**
92
     * Get ffsecondarias.
93
     *
94
     * @return \Doctrine\Common\Collections\Collection
95
     */
96
    public function getFfsecondarias()
97
    {
98
        return $this->ffsecondarias;
99
    }
100
101
    public function __toString()
102
    {
103
        return $this->getDescrizione();
104
    }
105
}
106