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::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 4
crap 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