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

AuthorizationCredentials::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

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
rs 10
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