Configure   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 4 2
1
<?php
2
/**
3
 * Configuration base
4
 * User: moyo
5
 * Date: 2018/5/28
6
 * Time: 10:07 PM
7
 */
8
9
namespace Carno\Web\Router;
10
11
use Carno\Container\DI;
12
use Carno\Web\Chips\Router\SUExecutor;
13
use Carno\Web\Contracts\RConfiguration;
14
15
abstract class Configure implements RConfiguration
16
{
17
    use SUExecutor;
18
19
    /**
20
     */
21
    final public function process() : void
22
    {
23
        foreach ($this->setups() as $setup) {
24
            $this->$setup(DI::object(Setup::class));
25
        }
26
    }
27
}
28