FakeArticle   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 20
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getId() 0 1 1
A getTitle() 0 1 1
A getUser() 0 1 1
A getTag() 0 1 1
1
<?php
2
namespace Thunder\Serializard\Tests\Fake;
3
4
final class FakeArticle
5
{
6
    private $id;
7
    private $title;
8
    private $user;
9
    private $tag;
10
11
    public function __construct($id, $title, FakeUser $user, FakeTag $tag)
12
    {
13
        $this->id = $id;
14
        $this->title = $title;
15
        $this->user = $user;
16
        $this->tag = $tag;
17
    }
18
19
    public function getId() { return $this->id; }
20
    public function getTitle() { return $this->title; }
21
    public function getUser() { return $this->user; }
22
    public function getTag() { return $this->tag; }
23
}
24