Passed
Push — main ( 839b76...3b8d69 )
by Stas
05:20
created

AuthorizationCredentials::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
namespace Huawei\IAP;
4
5
class AuthorizationCredentials
6
{
7
    private $applicationId;
8
    private $appKey;
9
10 2
    public function __construct(int $applicationId, string $appKey)
11
    {
12 2
        $this->applicationId = $applicationId;
13 2
        $this->appKey = $appKey;
14 2
    }
15
16
    /**
17
     * @return int
18
     */
19 2
    public function getApplicationId(): int
20
    {
21 2
        return $this->applicationId;
22
    }
23
24
    /**
25
     * @return string
26
     */
27 2
    public function getAppKey(): string
28
    {
29 2
        return $this->appKey;
30
    }
31
32
33
}
34