Lang::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace ClientBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Class Lang
9
 * @ORM\Entity(repositoryClass="ClientBundle\Repository\LangRepository")
10
 * @ORM\Table(name="languages")
11
 */
12
class Lang
13
{
14
    /**
15
     * @ORM\Column(type="integer")
16
     * @ORM\Id
17
     * @ORM\GeneratedValue(strategy="AUTO")
18
     */
19
    private $id;
20
21
    /**
22
     * @ORM\Column(type="string", length=25, nullable=false)
23
     */
24
    private $name;
25
26
    /**
27
     * Get id
28
     *
29
     * @return integer
30
     */
31
    public function getId()
32
    {
33
        return $this->id;
34
    }
35
36
    /**
37
     * Set name
38
     *
39
     * @param string $name
40
     *
41
     * @return Lang
42
     */
43
    public function setName($name)
44
    {
45
        $this->name = $name;
46
47
        return $this;
48
    }
49
50
    /**
51
     * Get name
52
     *
53
     * @return string
54
     */
55
    public function getName()
56
    {
57
        return $this->name;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function __toString()
64
    {
65
        return $this->name;
66
    }
67
}
68