Configure::process()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 2
nc 2
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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