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.

IdealPayment   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 35
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A toArray() 0 7 1
1
<?php
2
3
namespace CMPayments\PaymentSdk\Entities;
4
5
use Money\Money;
6
7
/**
8
 * Class IdealPayment
9
 * @package CMPayments\PaymentSdk\Entities
10
 * @author Jory Geerts <[email protected]>
11
 */
12
class IdealPayment extends Payment
13
{
14
    /**
15
     * @var string
16
     */
17
    private $issuerId;
18
    /**
19
     * @var string
20
     */
21
    private $description;
22
23
    /**
24
     * IdealPayment constructor.
25
     * @param Money $money
26
     * @param string $issuers
27
     * @param string $purchaseId
28
     * @param string $description
29
     */
30 1
    public function __construct(Money $money, $issuers, $purchaseId, $description)
31
    {
32 1
        parent::__construct($money, 'iDEAL', $purchaseId);
33
34 1
        $this->issuerId = $issuers;
35 1
        $this->description = $description;
36 1
    }
37
38
    /** @inheritdoc */
39 1
    public function toArray()
40
    {
41 1
        $array = parent::toArray();
42 1
        $array['payment_details']['issuer_id'] = $this->issuerId;
43 1
        $array['payment_details']['description'] = $this->description;
44 1
        return $array;
45
    }
46
}
47