ControllerConfigurator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php declare(strict_types = 1);
2
/**
3
 * Created by PhpStorm.
4
 * User: root
5
 * Date: 27.07.2016
6
 * Time: 1:55.
7
 */
8
namespace samsonframework\container\configurator;
9
10
use samsonframework\container\Builder;
11
12
/**
13
 * Controller class configurator.
14
 *
15
 * This configurator adds class to Controller container scope.
16
 * @see    samsonframework\container\Container::SCOPE_CONTROLLER
17
 *
18
 * @author Vitaly Egorov <[email protected]>
19
 */
20
class ControllerConfigurator extends ScopeConfigurator
21
{
22
    /**
23
     * ControllerConfigurator constructor.
24
     */
25
    public function __construct()
26
    {
27
        // Add to controller scope
28
        parent::__construct(Builder::SCOPE_CONTROLLER);
29
    }
30
}
31