Completed
Push — master ( 7d15ad...041b6d )
by Mehmet
03:10
created

EndpointAbstract::getEndpoint()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace TK\API\Endpoint;
4
5
use TK\API\Client;
6
7
abstract class EndpointAbstract
8
{
9
10
    protected $endpoint;
11
    protected $queryParameters = [];
12
    protected $headers = [];
13
    protected $httpRequestMethod = Client::HTTP_POST;
14
    protected $responseRoot = '';
15
    protected $requestHeaderRequired = true;
16
17
    public function getEndpoint() : string
18
    {
19
        return $this->endpoint;
20
    }
21
22
    public function getHeaders() : array
23
    {
24
        return $this->headers;
25
    }
26
27
    public function getQueryParams() : array
28
    {
29
        return $this->queryParameters;
30
    }
31
32
    public function getHttpRequestMethod() : string
33
    {
34
        return $this->httpRequestMethod;
35
    }
36
37
    public function getResponseRoot() : string
38
    {
39
        return $this->responseRoot;
40
    }
41
42
    public function doesRequireRequestHeaders() : bool
43
    {
44
        return $this->requestHeaderRequired;
45
    }
46
}
47