RelationPaginator::getSelf()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 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