HChains   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A layers() 0 3 2
1
<?php
2
/**
3
 * Handler chains
4
 * User: moyo
5
 * Date: 19/03/2018
6
 * Time: 11:24 AM
7
 */
8
9
namespace Carno\RPC\Chips;
10
11
use Carno\Chain\Layers;
12
use Carno\Container\DI;
13
14
trait HChains
15
{
16
    /**
17
     * @return Layers
18
     */
19
    final public static function layers() : Layers
20
    {
21
        return DI::has(self::class) ? DI::get(self::class) : DI::set(self::class, new Layers);
22
    }
23
}
24