Completed
Push — master ( b2c31d...142309 )
by Vitaliy
01:49
created

Localized::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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