Passed
Push — master ( 67a5da...c35f7b )
by Jared
01:13
created

PaymentsList::setTotalResults()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace CultureKings\Afterpay\Model\Merchant;
4
5
/**
6
 * Class PaymentsList
7
 * @package CultureKings\Afterpay\Model\Merchant
8
 */
9
class PaymentsList
10
{
11
    /**
12
     * @var int
13
     */
14
    protected $totalResults;
15
    /**
16
     * @var int
17
     */
18
    protected $offset;
19
    /**
20
     * @var int
21
     */
22
    protected $limit;
23
    /**
24
     * @var Payment[]
25
     */
26
    protected $results = [ ];
27
28
    /**
29
     * @return int
30
     */
31
    public function getTotalResults()
32
    {
33
        return $this->totalResults;
34
    }
35
36
    /**
37
     * @param int $totalResults
38
     * @return $this
39
     */
40
    public function setTotalResults($totalResults)
41
    {
42
        $this->totalResults = $totalResults;
43
44
        return $this;
45
    }
46
47
    /**
48
     * @return int
49
     */
50
    public function getOffset()
51
    {
52
        return $this->offset;
53
    }
54
55
    /**
56
     * @param int $offset
57
     * @return $this
58
     */
59
    public function setOffset($offset)
60
    {
61
        $this->offset = $offset;
62
63
        return $this;
64
    }
65
66
    /**
67
     * @return int
68
     */
69
    public function getLimit()
70
    {
71
        return $this->limit;
72
    }
73
74
    /**
75
     * @param int $limit
76
     * @return $this
77
     */
78
    public function setLimit($limit)
79
    {
80
        $this->limit = $limit;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @return Payment[]
87
     */
88
    public function getResults()
89
    {
90
        return $this->results;
91
    }
92
93
    /**
94
     * @param Payment[] $results
95
     * @return $this
96
     */
97
    public function setResults(array $results)
98
    {
99
        $this->results = $results;
100
101
        return $this;
102
    }
103
}
104