Core1   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setInputs() 0 3 1
1
<?php
2
3
/**
4
 * Example cores for show how to connect inputs into your app
5
 */
6
use kalanis\kw_input\Inputs;
7
8
9
class Core1
10
{
11
    protected $inputs = null;
12
13
    /// ...
14
15
    public function setInputs(Inputs $inputs)
16
    {
17
        $this->inputs = $inputs;
18
    }
19
20
    /// ...
21
}
22
23
24
class Core2
25
{
26
    protected $inputs = null;
27
28
    public function __construct(array $cliArgs = [])
29
    {
30
        $this->inputs = new Inputs();
31
        $this->inputs->setSource($cliArgs)->loadEntries();
32
        /// ...
33
    }
34
35
    /// ...
36
}
37