Passed
Push — master ( e7a7f9...d54a1d )
by Ronan
04:18
created

Settings::getService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace App\Facades;
4
5
use Ronanchilvers\Foundation\Config;
6
use Ronanchilvers\Foundation\Facade\Facade;
7
use Slim\Views\Twig as TwigView;
8
9
/**
10
 * Settings facade class
11
 *
12
 * @method static void set(string $key, mixed $value)
13
 * @method static bool has(string $key)
14
 * @method static mixed get(string $key, mixed $default = null)
15
 * @method static mixed getOrThrow(string $key, string $message = null)
16
 * @method static array getAll()
17
 * @method static void merge(\Ronanchilvers\Foundation\Config $config)
18
 * @author Ronan Chilvers <[email protected]>
19
 */
20
class Settings extends Facade
21
{
22
    /**
23
     * @var string
24
     */
25
    protected static $serviceName = 'settings';
26
27
    /**
28
     * @author Ronan Chilvers <[email protected]>
29
     */
30 1
    public static function getService()
31
    {
32 1
        $service = parent::getService();
33
34 1
        return new Config($service);
35
    }
36
}
37