Test Failed
Push — master ( 751b74...30bdfb )
by Julien
11:52
created

En::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 10
c 0
b 0
f 0
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 9.9332
cc 1
nc 1
nop 2
crap 2
1
<?php
2
/**
3
 * This file is part of the Zemit Framework.
4
 *
5
 * (c) Zemit Team <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE.txt
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Zemit\Locales;
12
13
use Phalcon\Translate\Adapter\NativeArray;
14
use Phalcon\Translate\InterpolatorFactory;
15
16
/**
17
 * Class En
18
 * {@inheritDoc}
19
 *
20
 * @link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
21
 *
22
 * @author Julien Turbide <[email protected]>
23
 * @copyright Zemit Team <[email protected]>
24
 *
25
 * @since 1.0
26
 * @version 1.0
27
 *
28
 * @package Zemit\Locale
29
 */
30
class En extends NativeArray
31
{
32
    /**
33
     * En constructor.
34
     * {@inheritDoc}
35
     *
36
     * @param InterpolatorFactory $interpolator
37
     * @param array $options
38
     */
39
    public function __construct(InterpolatorFactory $interpolator, array $options)
40
    {
41
        $this->replacePlaceholders('zemit', [
42
            'zemit' => '<a href="https://www.zemit.com/">Zemit</a>'
43
        ]);
44
        
45
        parent::__construct($interpolator, array_merge_recursive([
46
            'locale' => 'en_US.UTF-8',
47
            'defaultDomain' => 'zemit',
48
            'category' => LC_MESSAGES,
49
            'content' => [
50
                'powered-by' => 'Powered by %zemit%.',
51
                'copyright' => '%zemit% &copy; 2017 Zemit.',
52
            ],
53
        ], $options));
54
    }
55
}
56