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

AuthorizationCredentials   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 25
ccs 8
cts 8
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getApplicationId() 0 3 1
A __construct() 0 4 1
A getAppKey() 0 3 1
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