Localized::getKey()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types = 1);
4
5
/*
6
 * This file is part of the AppleApnPush package
7
 *
8
 * (c) Vitaliy Zhuk <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code
12
 */
13
14
namespace Apple\ApnPush\Model;
15
16
/**
17
 * Value object for store localized information
18
 */
19
class Localized
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $key;
25
26
    /**
27
     * @var array
28
     */
29
    protected $args;
30
31
    /**
32
     * Constructor.
33
     *
34
     * @param string $key
35
     * @param array  $args
36
     */
37
    public function __construct(string $key, array $args = [])
38
    {
39
        $this->key = $key;
40
        $this->args = $args;
41
    }
42
43
    /**
44
     * Get localized key
45
     *
46
     * @return string
47
     */
48
    public function getKey(): string
49
    {
50
        return $this->key;
51
    }
52
53
    /**
54
     * Get localized args
55
     *
56
     * @return array
57
     */
58
    public function getArgs(): array
59
    {
60
        return $this->args;
61
    }
62
}
63