ConsoleLoader   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A load() 0 4 1
A flush() 0 4 1
1
<?php
2
3
namespace Extraload\Loader;
4
5
use Symfony\Component\Console\Helper\Table;
6
7
class ConsoleLoader implements LoaderInterface
8
{
9
    private $table;
10
11
    public function __construct(Table $table)
12
    {
13
        $this->table = $table;
14
    }
15
16
    public function load($data)
17
    {
18
        $this->table->addRow($data);
19
    }
20
21
    public function flush()
22
    {
23
        $this->table->render();
24
    }
25
}
26