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.
Completed
Push — master ( c2c652...2f2291 )
by Lester
04:10
created

TopupHttpApiParams::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace LBHurtado\EngageSpark\Classes;
4
5
use LBHurtado\Common\Contracts\HttpApiParams;
6
7
class TopupHttpApiParams implements HttpApiParams
8
{
9
    /**
10
     * @var int
11
     */
12
    protected $org_id;
13
14
    /**
15
     * @var string
16
     */
17
    protected $mobile_number;
18
19
    /**
20
     * @var int
21
     */
22
    protected $amount;
23
24
    /**
25
     * @var string
26
     */
27
    protected $recipientType = 'mobile_number';
28
29
    /**
30
     * @var string
31
     */
32
    protected $reference;
33
34
    /**
35
     * SendParams constructor.
36
     * @param $org_id
37
     * @param $mobile_number
38
     * @param $amount
39
     * @param $reference
40
     */
41
    public function __construct(int $org_id, string $mobile_number, int $amount, string $reference)
42
    {
43
        $this->org_id = $org_id;
44
        $this->mobile_number = $mobile_number;
45
        $this->amount = $amount;
46
        $this->reference = $reference;
47
    }
48
49
    //TODO: make this independent of provider, right now it's engagespark
50
    public function toArray(): array
51
    {
52
        return [
53
            'organizationId' => $this->org_id,
54
            'phoneNumber' => $this->mobile_number,
55
            'maxAmount' => $this->amount,
56
            'clientRef'  => $this->reference,
57
        ];
58
    }
59
}
60