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

Cp   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 34
ccs 0
cts 11
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 9 1
A getTransformers() 0 6 1
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
}