Completed
Push — master ( 695b53...13261c )
by Tomas
03:17
created

Config::setApplicationId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace OneSignal;
6
7
final class Config
8
{
9
    private $applicationId;
10
    private $applicationAuthKey;
11
    private $userAuthKey;
12
13
    public function __construct(string $applicationId, string $applicationAuthKey, string $userAuthKey = null)
14
    {
15
        $this->applicationId = $applicationId;
16
        $this->applicationAuthKey = $applicationAuthKey;
17
        $this->userAuthKey = $userAuthKey;
18
    }
19
20
    /**
21
     * Get OneSignal application id.
22
     */
23
    public function getApplicationId(): string
24
    {
25
        return $this->applicationId;
26
    }
27
28
    /**
29
     * Get OneSignal application authentication key.
30
     */
31
    public function getApplicationAuthKey(): string
32
    {
33
        return $this->applicationAuthKey;
34
    }
35
36
    /**
37
     * Get user authentication key.
38
     */
39
    public function getUserAuthKey(): ?string
40
    {
41
        return $this->userAuthKey;
42
    }
43
}
44