Overrides   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
c 1
b 0
f 1
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A overrides() 0 3 1
1
<?php
2
/**
3
 * Config watch overrides (multi-key)
4
 * User: moyo
5
 * Date: 2018/8/20
6
 * Time: 5:55 PM
7
 */
8
9
namespace Carno\Config\Chips;
10
11
use Carno\Config\Features\Overrider;
12
use Closure;
13
14
trait Overrides
15
{
16
    /**
17
     * @param Closure $observer
18
     * @param string ...$keys
19
     * @return Overrider
20
     */
21
    public function overrides(Closure $observer, string ...$keys) : Overrider
22
    {
23
        return new Overrider($this, $observer, $keys);
24
    }
25
}
26