Subscriber   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 40
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 6 1
1
<?php
2
3
namespace Padam87\AttributeBundle\Tests\Model;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Padam87\AttributeBundle\Annotation as EAV;
7
use Padam87\AttributeBundle\Entity\AttributedEntityTrait;
8
9
/**
10
 * @ORM\Entity()
11
 * @EAV\Entity()
12
 */
13
class Subscriber
14
{
15
    use AttributedEntityTrait;
16
17
    /**
18
     * @ORM\Id
19
     * @ORM\Column(type="integer")
20
     * @ORM\GeneratedValue(strategy="AUTO")
21
     *
22
     * @var int
23
     */
24
    protected $id;
25
26
    /**
27
     * @var string
28
     *
29
     * @ORM\Column(type="string", nullable=true)
30
     */
31
    protected $name;
32
33
    /**
34
     * @return string
35
     */
36
    public function getName()
37
    {
38
        return $this->name;
39
    }
40
41
    /**
42
     * @param string $name
43
     *
44
     * @return $this
45
     */
46
    public function setName($name)
47
    {
48
        $this->name = $name;
49
50
        return $this;
51
    }
52
}
53