GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ViewPaymentRequest::getEndpoint()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace CMPayments\PaymentSdk\Requests;
4
5
/**
6
 * Class ViewChargeRequest
7
 * @package CMPayments\PaymentSdk\Requests
8
 * @author Jory Geerts <[email protected]>
9
 */
10
class ViewPaymentRequest implements RequestInterface
11
{
12
    /**
13
     * @var string
14
     */
15
    private $paymentId;
16
17
    /**
18
     * ViewChargeRequest constructor.
19
     */
20 3
    public function __construct($paymentId)
21
    {
22 3
        $this->paymentId = $paymentId;
23 3
    }
24
25
26
    /**
27
     * Get the Guzzle uri
28
     *
29
     * @return string The Guzzle uri
30
     */
31 1
    public function getEndpoint()
32
    {
33 1
        return 'payments/v1/' . $this->paymentId;
34
    }
35
36
    /**
37
     * Get the request type
38
     *
39
     * @return string The request type
40
     */
41 1
    public function getRequestMethod()
42
    {
43 1
        return 'GET';
44
    }
45
46
    /**
47
     * Get the actual request data
48
     *
49
     * @return array[] The payload
50
     */
51 1
    public function getPayload()
52
    {
53 1
        return null;
54
    }
55
}
56