Passed
Push — master ( 46260f...cb5e2e )
by Jean Paul
01:23
created

Loader   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 15
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setOutput() 0 3 1
A getOutput() 0 3 1
1
<?php
2
3
namespace Coco\SourceWatcher\Core;
4
5
use Coco\SourceWatcher\Core\IO\Outputs\Output;
6
7
abstract class Loader extends Step
8
{
9
    protected ?Output $output = null;
10
11
    public function getOutput () : ?Output
12
    {
13
        return $this->output;
14
    }
15
16
    public function setOutput ( ?Output $output ) : void
17
    {
18
        $this->output = $output;
19
    }
20
21
    abstract public function load ( Row $row );
22
}
23