Completed
Push — master ( 0afe29...1d6efb )
by WEBEWEB
01:12
created

AbstractResponse::getNextPage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the pexels-library package.
5
 *
6
 * (c) 2019 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\Pexels\Model;
13
14
/**
15
 * Abstract response.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Library\Pexels\Model
19
 * @abstract
20
 */
21
abstract class AbstractResponse {
22
23
    /**
24
     * Rate limit remaining.
25
     *
26
     * @var int
27
     */
28
    private $rateLimitRemaining;
29
30
    /**
31
     * Raw response.
32
     *
33
     * @var string
34
     */
35
    private $rawResponse;
36
37
    /**
38
     * Constructor.
39
     */
40
    public function __construct() {
41
        // NOTHING TO DO.
42
    }
43
44
    /**
45
     * Get the rate limit remaining.
46
     *
47
     * @return int Returns the rate limit remaining.
48
     */
49
    public function getRateLimitRemaining() {
50
        return $this->rateLimitRemaining;
51
    }
52
53
    /**
54
     * Get the raw response.
55
     *
56
     * @return string Returns the raw response.
57
     */
58
    public function getRawResponse() {
59
        return $this->rawResponse;
60
    }
61
62
    /**
63
     * Set the rate limit remaining.
64
     *
65
     * @param int $rateLimitRemaining The rate limit remaining.
66
     * @return AbstractResponse Returns this response.
67
     */
68
    public function setRateLimitRemaining($rateLimitRemaining) {
69
        $this->rateLimitRemaining = $rateLimitRemaining;
70
        return $this;
71
    }
72
73
    /**
74
     * Set the raw response.
75
     *
76
     * @param string $rawResponse The raw response.
77
     * @return AbstractResponse Returns this response.
78
     */
79
    public function setRawResponse($rawResponse) {
80
        $this->rawResponse = $rawResponse;
81
        return $this;
82
    }
83
}
84