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

AbstractRequest::getQuery()   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 request.
16
 *
17
 * @author webeweb <https://github.com/webeweb/>
18
 * @package WBW\Library\Pexels\Model
19
 * @abstract
20
 */
21
abstract class AbstractRequest {
22
23
    /**
24
     * Authorization.
25
     *
26
     * @var string
27
     */
28
    private $authorization;
29
30
    /**
31
     * Constructor.
32
     */
33
    public function __construct() {
34
        // NOTHING TO DO.
35
    }
36
37
    /**
38
     * Get the authorization.
39
     *
40
     * @return string Returns the uathorization.
41
     */
42
    public function getAuthorization() {
43
        return $this->authorization;
44
    }
45
46
    /**
47
     * Get the resource path.
48
     *
49
     * @return string Returns the resource path.
50
     */
51
    abstract public function getResourcePath();
52
53
    /**
54
     * Set the authorization.
55
     *
56
     * @param string $authorization The authorization.
57
     * @return AbstractRequest Returns this request.
58
     */
59
    public function setAuthorization($authorization) {
60
        $this->authorization = $authorization;
61
        return $this;
62
    }
63
}
64