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

Localized   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 44
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getKey() 0 4 1
A getArgs() 0 4 1
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