Completed
Push — develop ( 0c0d6d...6a2a65 )
by Nate
61:06
created

Cp::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 7
cp 0
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/flux/license
6
 * @link       https://www.flipboxfactory.com/software/flux/
7
 */
8
9
namespace flipbox\flux\cp;
10
11
use modules\Module;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 1.0.0
16
 *
17
 * @property services\Transformers $transformers
18
 */
19
class Cp extends Module
20
{
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function init()
26
    {
27
        parent::init();
28
29
        // Components
30
        $this->setComponents([
31
            'transformers' => services\Transformers::class,
32
        ]);
33
    }
34
35
36
    /*******************************************
37
     * SERVICES
38
     *******************************************/
39
40
    /**
41
     * @noinspection PhpDocMissingThrowsInspection
42
     * @return services\Transformers
43
     */
44
    public function getTransformers(): services\Transformers
45
    {
46
        /** @noinspection PhpUnhandledExceptionInspection */
47
        /** @noinspection PhpIncompatibleReturnTypeInspection */
48
        return $this->get('transformers');
49
    }
50
51
52
}