MyEntity::getTitle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Mdiyakov\DoctrineSolrBundle\Tests\Config\Entity;
4
5
6
class MyEntity
7
{
8
    /**
9
     * @var int
10
     */
11
    private $id;
12
13
    /**
14
     * @var \DateTime
15
     */
16
    private $createdAt;
17
18
    /**
19
     * @var string
20
     */
21
    private $title;
22
23
    /**
24
     * @var float
25
     */
26
    private $price;
27
28
    /**
29
     * @var bool
30
     */
31
    private $enabled = false;
32
33
    /**
34
     * @var array
35
     */
36
    private $tags = [];
37
38
    /**
39
     * @return int
40
     */
41
    public function getId()
42
    {
43
        return $this->id;
44
    }
45
46
    /**
47
     * @param int $id
48
     */
49
    public function setId($id)
50
    {
51
        $this->id = $id;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getTitle()
58
    {
59
        return $this->title;
60
    }
61
62
    /**
63
     * @param string $title
64
     */
65
    public function setTitle($title)
66
    {
67
        $this->title = $title;
68
    }
69
70
    /**
71
     * @return float
72
     */
73
    public function getPrice()
74
    {
75
        return $this->price;
76
    }
77
78
    /**
79
     * @param float $price
80
     */
81
    public function setPrice($price)
82
    {
83
        $this->price = $price;
84
    }
85
86
    /**
87
     * @return boolean
88
     */
89
    public function isEnabled()
90
    {
91
        return $this->enabled;
92
    }
93
94
    /**
95
     * @param boolean $enabled
96
     */
97
    public function setEnabled($enabled)
98
    {
99
        $this->enabled = $enabled;
100
    }
101
102
    /**
103
     * @return \DateTime
104
     */
105
    public function getCreatedAt()
106
    {
107
        return $this->createdAt;
108
    }
109
110
    /**
111
     * @param \DateTime $createdAt
112
     */
113
    public function setCreatedAt($createdAt)
114
    {
115
        $this->createdAt = $createdAt;
116
    }
117
118
    /**
119
     * @return array
120
     */
121
    public function getTags()
122
    {
123
        return $this->tags;
124
    }
125
126
    /**
127
     * @param array $tags
128
     */
129
    public function setTags($tags)
130
    {
131
        $this->tags = $tags;
132
    }
133
134
}
135
136
137