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   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 0
dl 0
loc 46
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getEndpoint() 0 4 1
A getRequestMethod() 0 4 1
A getPayload() 0 4 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