Completed
Push — master ( 6f37d5...aba46f )
by Matej
8s
created

SyncEvent::getOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Velikonja\LabbyBundle\Event;
4
5
use Symfony\Component\Console\Output\NullOutput;
6
use Symfony\Component\Console\Output\OutputInterface;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class SyncEvent extends Event
10
{
11
    /**
12
     * @var OutputInterface
13
     */
14
    private $output;
15
16
    /**
17
     * @param null|OutputInterface $output
18
     */
19 4
    public function __construct(OutputInterface $output = null)
20
    {
21 4
        if (! $output) {
22
            $output = new NullOutput();
23
        }
24
25 4
        $this->output = $output;
26 4
    }
27
28 4
    public function getOutput()
29
    {
30 4
        return $this->output;
31
    }
32
}
33