RelationPaginator   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 53
rs 10
ccs 11
cts 11
cp 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getFirst() 0 4 1
A getLast() 0 4 1
A getSelf() 0 4 1
1
<?php
2
3
namespace Pgs\RestfonyBundle\Model;
4
5
/**
6
 * @author Michał Sikora
7
 */
8
class RelationPaginator
9
{
10
    /**
11
     * @var string
12
     */
13
    private $first;
14
15
    /**
16
     * @var string
17
     */
18
    private $last;
19
20
    /**
21
     * @var string
22
     */
23
    private $self;
24
25
    /**
26
     * @param string $first
27
     * @param string $last
28
     * @param string $self
29
     */
30 3
    public function __construct($first, $last, $self)
31
    {
32 3
        $this->first = $first;
33 3
        $this->last = $last;
34 3
        $this->self = $self;
35 3
    }
36
37
    /**
38
     * @return string
39
     */
40 2
    public function getFirst()
41
    {
42 2
        return $this->first;
43
    }
44
45
    /**
46
     * @return string
47
     */
48 2
    public function getLast()
49
    {
50 2
        return $this->last;
51
    }
52
53
    /**
54
     * @return string
55
     */
56 2
    public function getSelf()
57
    {
58 2
        return $this->self;
59
    }
60
}
61