Completed
Pull Request — master (#5)
by James Ekow Abaka
03:53
created

Command   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
3
namespace yentu\commands;
4
5
6
use clearice\io\Io;
7
use ntentan\config\Config;
8
use yentu\DatabaseManipulatorFactory;
9
use yentu\Yentu;
10
11
class Command
12
{
13
    protected $config;
14
    protected $yentu;
15
    protected $manipulatorFactory;
16
    protected $io;
17
18 42
    public function __construct(Yentu $yentu, DatabaseManipulatorFactory $manipulatorFactory = null, Io $io = null, Config $config = null)
19
    {
20 42
        $this->manipulatorFactory = $manipulatorFactory;
21 42
        $this->yentu = $yentu;
22 42
        $this->config = $config;
23 42
        $this->io = $io;
24
    }
25
}