ContactType   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 56
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setName() 0 6 1
A getName() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace ClientBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
/**
8
 * Class ContactType
9
 * @ORM\Entity(repositoryClass="ClientBundle\Repository\ContactTypeRepository")
10
 * @ORM\Table(name="contacttype")
11
 */
12
class ContactType
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 ContactType
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 (string) $this->getName();
66
    }
67
}
68