PaginationLinks   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 127
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
dl 0
loc 127
ccs 15
cts 25
cp 0.6
rs 10
c 0
b 0
f 0
wmc 10
lcom 0
cbo 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getSelf() 0 4 1
A setSelf() 0 6 1
A getFirst() 0 4 1
A setFirst() 0 6 1
A getPrev() 0 4 1
A setPrev() 0 6 1
A getNext() 0 4 1
A setNext() 0 6 1
A getLast() 0 4 1
A setLast() 0 6 1
1
<?php
2
3
namespace App\Model;
4
5
use JMS\Serializer\Annotation\ExclusionPolicy;
6
use JMS\Serializer\Annotation\Expose;
7
use JMS\Serializer\Annotation\Type;
8
9
/**
10
 * @ExclusionPolicy("all")
11
 */
12
class PaginationLinks
13
{
14
    /**
15
     * @Expose()
16
     * @Type("App\Model\Link")
17
     */
18
    protected $self;
19
20
    /**
21
     * @Expose()
22
     * @Type("App\Model\Link")
23
     */
24
    protected $first;
25
26
    /**
27
     * @Expose()
28
     * @Type("App\Model\Link")
29
     */
30
    protected $prev;
31
32
    /**
33
     * @Expose()
34
     * @Type("App\Model\Link")
35
     */
36
    protected $next;
37
38
    /**
39
     * @Expose()
40
     * @Type("App\Model\Link")
41
     */
42
    protected $last;
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getSelf()
48
    {
49
        return $this->self;
50
    }
51
52
    /**
53
     * @param $self
54
     * @return $this
55
     */
56 8
    public function setSelf($self)
57
    {
58 8
        $this->self = $self;
59
60 8
        return $this;
61
    }
62
63
    /**
64
     * @return mixed
65
     */
66
    public function getFirst()
67
    {
68
        return $this->first;
69
    }
70
71
    /**
72
     * @param $first
73
     * @return $this
74
     */
75 8
    public function setFirst($first)
76
    {
77 8
        $this->first = $first;
78
79 8
        return $this;
80
    }
81
82
    /**
83
     * @return mixed
84
     */
85
    public function getPrev()
86
    {
87
        return $this->prev;
88
    }
89
90
    /**
91
     * @param $prev
92
     * @return $this
93
     */
94 8
    public function setPrev($prev)
95
    {
96 8
        $this->prev = $prev;
97
98 8
        return $this;
99
    }
100
101
    /**
102
     * @return mixed
103
     */
104
    public function getNext()
105
    {
106
        return $this->next;
107
    }
108
109
    /**
110
     * @param $next
111
     * @return $this
112
     */
113 8
    public function setNext($next)
114
    {
115 8
        $this->next = $next;
116
117 8
        return $this;
118
    }
119
120
    /**
121
     * @return mixed
122
     */
123
    public function getLast()
124
    {
125
        return $this->last;
126
    }
127
128
    /**
129
     * @param $last
130
     * @return $this
131
     */
132 8
    public function setLast($last)
133
    {
134 8
        $this->last = $last;
135
136 8
        return $this;
137
    }
138
}
139