Completed
Branch master (8bfcf4)
by Tomasz
02:29
created

FakeTag   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A setId() 0 1 1
A getId() 0 1 1
A setName() 0 1 1
A getName() 0 1 1
A setUser() 0 1 1
A getUser() 0 1 1
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
    function __construct($id, $name)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
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(FakeUser $user) { $this->user = $user; return $this; }
23
    public function getUser() { return $this->user; }
24
}
25