Tip::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace AppBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Symfony\Component\Validator\Constraints as Assert;
7
use JMS\Serializer\Annotation as JMS;
8
9
/**
10
 * @package AppBundle\Entity
11
 *
12
 * @ORM\Entity(repositoryClass="AppBundle\Entity\TipRepository")
13
 *
14
 * @JMS\ExclusionPolicy("all")
15
 */
16
class Tip extends Base
17
{
18
    /**
19
     * @ORM\Id()
20
     * @ORM\Column(type="integer")
21
     * @ORM\GeneratedValue()
22
     */
23
    private $id;
24
25
    /**
26
     * @var int
27
     *
28
     * @JMS\Expose
29
     *
30
     * @ORM\Column(type="integer")
31
     * @Assert\NotBlank()
32
     */
33
    private $day;
34
35
    /**
36
     * @var int
37
     *
38
     * @JMS\Expose
39
     *
40
     * @ORM\Column(type="integer")
41
     * @Assert\NotBlank()
42
     */
43
    private $month;
44
45
    /**
46
     * @var string
47
     *
48
     * @JMS\Expose
49
     *
50
     * @ORM\Column(type="string")
51
     * @Assert\NotBlank()
52
     */
53
    private $description;
54
55
    /**
56
     * @return mixed
57
     */
58 2
    public function getId()
59
    {
60 2
        return $this->id;
61
    }
62
63
    /**
64
     * @return int
65
     */
66 4
    public function getDay()
67
    {
68 4
        return $this->day;
69
    }
70
71
    /**
72
     * @param int $day
73
     */
74 7
    public function setDay($day)
75
    {
76 7
        $this->day = $day;
77 7
    }
78
79
    /**
80
     * @return int
81
     */
82 4
    public function getMonth()
83
    {
84 4
        return $this->month;
85
    }
86
87
    /**
88
     * @param int $month
89
     */
90 7
    public function setMonth($month)
91
    {
92 7
        $this->month = $month;
93 7
    }
94
95
    /**
96
     * @return string
97
     */
98 4
    public function getDescription()
99
    {
100 4
        return $this->description;
101
    }
102
103
    /**
104
     * @param string $description
105
     */
106 7
    public function setDescription($description)
107
    {
108 7
        $this->description = $description;
109 7
    }
110
}
111