| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class ReportEvent extends Event |
||
|
|
|||
| 21 | { |
||
| 22 | const BEFORE_PROCESS = 'doyo.coverage.report_pre'; |
||
| 23 | const PROCESS = 'doyo.coverage.report_process'; |
||
| 24 | const AFTER_PROCESS = 'doyo.coverage.report_post'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var CodeCoverage|null |
||
| 28 | */ |
||
| 29 | private $coverage; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var StyleInterface|null |
||
| 33 | */ |
||
| 34 | private $io; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return CodeCoverage|null |
||
| 38 | */ |
||
| 39 | 1 | public function getCoverage() |
|
| 40 | { |
||
| 41 | 1 | return $this->coverage; |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param CodeCoverage $coverage |
||
| 46 | */ |
||
| 47 | 1 | public function setCoverage(CodeCoverage $coverage) |
|
| 48 | { |
||
| 49 | 1 | $this->coverage = $coverage; |
|
| 50 | |||
| 51 | 1 | return $this; |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return StyleInterface|null |
||
| 56 | */ |
||
| 57 | 1 | public function getIO() |
|
| 58 | { |
||
| 59 | 1 | return $this->io; |
|
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param StyleInterface|null $io |
||
| 64 | * |
||
| 65 | * @return ReportEvent |
||
| 66 | */ |
||
| 67 | 1 | public function setIO(StyleInterface $io) |
|
| 72 | } |
||
| 73 | } |
||
| 74 |