Passed
Push — main ( 4dc4a3...97513a )
by Stas
14:40 queued 04:40
created

AuthorizationCredentials   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 25
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
    public function __construct(int $applicationId, string $appKey)
11
    {
12
        $this->applicationId = $applicationId;
13
        $this->appKey = $appKey;
14
    }
15
16
    /**
17
     * @return int
18
     */
19
    public function getApplicationId(): int
20
    {
21
        return $this->applicationId;
22
    }
23
24
    /**
25
     * @return string
26
     */
27
    public function getAppKey(): string
28
    {
29
        return $this->appKey;
30
    }
31
32
33
}
34