Completed
Push — master ( 55dbed...4e3396 )
by Piotr
12s
created

Category::setTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * (c) FSi sp. z o.o. <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace FSi\FixturesBundle\Entity;
11
12
use Doctrine\ORM\Mapping as ORM;
13
14
/**
15
 * @ORM\Entity
16
 * @ORM\Table(name="category")
17
 */
18
class Category
19
{
20
    /**
21
     * @ORM\Column(type="integer")
22
     * @ORM\Id
23
     * @ORM\GeneratedValue(strategy="AUTO")
24
     */
25
    protected $id;
26
27
    /**
28
     * @ORM\Column(type="string", length=100)
29
     */
30
    protected $title;
31
32
    public function getId()
33
    {
34
        return $this->id;
35
    }
36
37
    public function setTitle($title)
38
    {
39
        $this->title = $title;
40
    }
41
42
    public function getTitle()
43
    {
44
        return $this->title;
45
    }
46
}
47