ConsoleLoader::flush()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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