ExecutionEvent   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 65
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setOutput() 0 4 1
A setReport() 0 4 1
A setTemplate() 0 4 1
A getOutput() 0 4 1
A getReport() 0 4 1
A getTemplate() 0 4 1
1
<?php
2
/**
3
 * ShouldPHP
4
 *
5
 * @author  Gabriel Jacinto <[email protected]>
6
 * @status  dev
7
 * @link    https://github.com/GabrielJMJ/ShouldPHP
8
 * @license MIT
9
 */
10
 
11
namespace Gabrieljmj\Should\Event;
12
13
use Gabrieljmj\Should\Event\ExecutionEventInterface;
14
use Symfony\Component\Console\Output\OutputInterface;
15
use Gabrieljmj\Should\Report\Report;
16
use Gabrieljmj\Should\Template\TemplateInterface;
17
use Symfony\Component\EventDispatcher\Event;
18
19
class ExecutionEvent extends Event implements ExecutionEventInterface
20
{
21
    /**
22
     * @var \Symfony\Component\Console\Output\OutputInterface
23
     */
24
    private $output;
25
26
    /**
27
     * @var \Gabrieljmj\Should\Report\Report
28
     */
29
    private $report;
30
31
    /**
32
     * @var \Gabrieljmj\Should\Template\TemplateInterface
33
     */
34
    private $template;
35
36
    /**
37
     * @param \Symfony\Component\Console\Output\OutputInterface $output
38
     */
39
    public function setOutput(OutputInterface $output)
40
    {
41
        $this->output = $output;
42
    }
43
44
    /**
45
     * @param \Gabrieljmj\Should\Report\Report $report
46
     */
47
    public function setReport(Report $report)
48
    {
49
        $this->report = $report;
50
    }
51
52
    /**
53
     * @param \Gabrieljmj\Should\Template\TemplateInterface $template
54
     */
55
    public function setTemplate(TemplateInterface $template)
56
    {
57
        $this->template = $template;
58
    }
59
60
    /**
61
     * @return \Symfony\Component\Console\Output\OutputInterface
62
     */
63
    public function getOutput()
64
    {
65
        return $this->output;
66
    }
67
68
    /**
69
     * @return \Gabrieljmj\Should\Report\Report
70
     */
71
    public function getReport()
72
    {
73
        return $this->report;
74
    }
75
76
    /**
77
     * @return \Gabrieljmj\Should\Template\TemplateInterface
78
     */
79
    public function getTemplate()
80
    {
81
        return $this->template;
82
    }
83
}