Completed
Branch master (1f9106)
by Nils
02:44
created

LiveReporter   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 3
Bugs 1 Features 0
Metric Value
wmc 4
c 3
b 1
f 0
lcom 0
cbo 2
dl 0
loc 20
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
A finish() 0 3 1
A processResult() 0 8 2
1
<?php
2
3
namespace whm\Smoke\Extensions\SmokeReporter\Reporter;
4
5
use Symfony\Component\Console\Output\OutputInterface;
6
use whm\Smoke\Scanner\Result;
7
8
class LiveReporter extends CliReporter
9
{
10
    public function init(OutputInterface $_output)
11
    {
12
        $this->setOutputInterface($_output);
13
    }
14
15
    public function processResult(Result $result)
16
    {
17
        if ($result->isSuccess()) {
18
            $this->renderSuccess($result);
19
        } else {
20
            $this->renderFailure($result);
21
        }
22
    }
23
24
    public function finish()
25
    {
26
    }
27
}
28