Completed
Push — master ( db7ab9...a6011d )
by Anton
04:58
created

EncrypterConfig::getCipher()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
/**
3
 * Spiral Framework.
4
 *
5
 * @license MIT
6
 * @author  Anton Titov (Wolfy-J)
7
 */
8
namespace Spiral\Encrypter\Configs;
9
10
use Spiral\Core\InjectableConfig;
11
12
/**
13
 * Encrypter configuration.
14
 */
15
class EncrypterConfig extends InjectableConfig
16
{
17
    /**
18
     * Configuration section.
19
     */
20
    const CONFIG = 'encrypter';
21
22
    /**
23
     * @var array
24
     */
25
    protected $config = [
26
        'key'    => ''
27
    ];
28
29
    /**
30
     * @return string
31
     */
32
    public function getKey()
33
    {
34
        return $this->config['key'];
35
    }
36
}