FakeTag::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
namespace Thunder\Serializard\Tests\Fake;
3
4
final class FakeTag
5
{
6
    private $id;
7
    private $name;
8
    private $user;
9
10
    public function __construct($id, $name)
11
    {
12
        $this->id = $id;
13
        $this->name = $name;
14
    }
15
16
    public function setId($id) { $this->id = $id; return $this; }
17
    public function getId() { return $this->id; }
18
19
    public function setName($name) { $this->name = $name; return $this; }
20
    public function getName() { return $this->name; }
21
22
    public function setUser(FakeUserParentParent $user) { $this->user = $user; return $this; }
23
    public function getUser() { return $this->user; }
24
    public function clearUser() { $this->user = null; }
25
}
26