Configured   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 6 3
1
<?php
2
/**
3
 * Based configure
4
 *
5
 * User: moyo
6
 * Date: 2018/5/24
7
 * Time: 10:24 PM
8
 */
9
10
namespace Carno\Console\Chips\Based;
11
12
use Carno\Console\Configure;
13
14
trait Configured
15
{
16
    /**
17
     * @param Configure $conf
18
     */
19
    final public function configure(Configure $conf) : void
20
    {
21
        // invoking all options[xx]
22
        foreach (get_class_methods($this) as $method) {
23
            if (substr($method, 0, 7) === 'options') {
24
                $this->$method($conf);
25
            }
26
        }
27
    }
28
}
29