Completed
Push — master ( acf0da...2b1360 )
by Vladimir
02:01
created

Meta   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 96
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 12
lcom 0
cbo 0
dl 0
loc 96
rs 10
c 0
b 0
f 0

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getTotal() 0 4 1
A setTotal() 0 4 1
A getCount() 0 4 1
A setCount() 0 4 1
A getPerPage() 0 4 1
A setPerPage() 0 4 1
A getCurrentPage() 0 4 1
A setCurrentPage() 0 4 1
A getTotalPages() 0 4 1
A setTotalPages() 0 4 1
A getLinks() 0 4 1
A setLinks() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AcquiroPay\Models\Pagination;
6
7
use stdClass;
8
9
class Meta
10
{
11
    private $total;
12
    private $count;
13
    private $perPage;
14
    private $currentPage;
15
    private $totalPages;
16
    private $links;
17
18
    /**
19
     * @return mixed
20
     */
21
    public function getTotal()
22
    {
23
        return $this->total;
24
    }
25
26
    /**
27
     * @param mixed $total
28
     */
29
    public function setTotal($total)
30
    {
31
        $this->total = $total;
32
    }
33
34
    /**
35
     * @return mixed
36
     */
37
    public function getCount()
38
    {
39
        return $this->count;
40
    }
41
42
    /**
43
     * @param mixed $count
44
     */
45
    public function setCount($count)
46
    {
47
        $this->count = $count;
48
    }
49
50
    /**
51
     * @return mixed
52
     */
53
    public function getPerPage()
54
    {
55
        return $this->perPage;
56
    }
57
58
    /**
59
     * @param mixed $perPage
60
     */
61
    public function setPerPage($perPage)
62
    {
63
        $this->perPage = $perPage;
64
    }
65
66
    /**
67
     * @return mixed
68
     */
69
    public function getCurrentPage()
70
    {
71
        return $this->currentPage;
72
    }
73
74
    /**
75
     * @param mixed $currentPage
76
     */
77
    public function setCurrentPage($currentPage)
78
    {
79
        $this->currentPage = $currentPage;
80
    }
81
82
    /**
83
     * @return mixed
84
     */
85
    public function getTotalPages()
86
    {
87
        return $this->totalPages;
88
    }
89
90
    public function setTotalPages(int $totalPages): void
91
    {
92
        $this->totalPages = $totalPages;
93
    }
94
95
    public function getLinks(): stdClass
96
    {
97
        return $this->links;
98
    }
99
100
    public function setLinks(stdClass $links): void
101
    {
102
        $this->links = $links;
103
    }
104
}
105