Total Complexity | 5 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class CoverageEvent extends Event |
||
21 | { |
||
22 | const BEFORE_START = 'doyo.coverage.start.pre'; |
||
23 | const BEFORE_STOP = 'doyo.coverage.stop.pre'; |
||
24 | const BEFORE_REFRESH = 'doyo.coverage.refresh.pre'; |
||
25 | const START = 'doyo.coverage.start'; |
||
26 | const STOP = 'doyo.coverage.stop'; |
||
27 | const REFRESH = 'doyo.coverage.refresh'; |
||
28 | const COMPLETED = 'doyo.coverage.completed'; |
||
29 | |||
30 | /** |
||
31 | * @var TestCase |
||
32 | */ |
||
33 | private $testCase; |
||
34 | |||
35 | /** |
||
36 | * @var ProcessorInterface |
||
37 | */ |
||
38 | private $processor; |
||
39 | |||
40 | 6 | public function __construct(TestCase $testCase = null) |
|
41 | { |
||
42 | 6 | $this->testCase = $testCase; |
|
43 | 6 | $this->coverage = []; |
|
|
|||
44 | 6 | } |
|
45 | |||
46 | /** |
||
47 | * @return TestCase |
||
48 | */ |
||
49 | 6 | public function getTestCase() |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param TestCase $testCase |
||
56 | */ |
||
57 | 7 | public function setTestCase($testCase=null) |
|
58 | { |
||
59 | 7 | $this->testCase = $testCase; |
|
60 | 7 | } |
|
61 | |||
62 | 8 | public function setProcessor($processor) |
|
63 | { |
||
64 | 8 | $this->processor = $processor; |
|
65 | 8 | } |
|
66 | |||
67 | 1 | public function getProcessor() |
|
70 | } |
||
71 | } |
||
72 |