doyolabs /
phpspec-code-coverage
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Doyo\PhpSpec\CodeCoverage\Event; |
||
| 5 | |||
| 6 | |||
| 7 | use Doyo\Behat\Coverage\Bridge\CodeCoverage\ProcessorInterface; |
||
| 8 | use Doyo\Behat\Coverage\Bridge\CodeCoverage\TestCase; |
||
| 9 | use Doyo\Symfony\Bridge\EventDispatcher\Event; |
||
| 10 | use PhpSpec\Console\ConsoleIO; |
||
| 11 | |||
| 12 | class CoverageEvent extends Event |
||
| 13 | { |
||
| 14 | const REPORT = 'doyo.coverage.report'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var ProcessorInterface |
||
| 18 | */ |
||
| 19 | private $processor; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var ConsoleIO |
||
| 23 | */ |
||
| 24 | private $consoleIO; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * CoverageEvent constructor. |
||
| 28 | * @param ProcessorInterface $processor |
||
| 29 | * @param ConsoleIO $consoleIO |
||
| 30 | */ |
||
| 31 | 1 | public function __construct( |
|
| 32 | ProcessorInterface $processor, |
||
| 33 | ConsoleIO $consoleIO |
||
| 34 | ) |
||
| 35 | { |
||
| 36 | 1 | $this->processor = $processor; |
|
| 37 | 1 | $this->consoleIO = $consoleIO; |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return ProcessorInterface |
||
| 42 | */ |
||
| 43 | public function getProcessor(): ProcessorInterface |
||
| 44 | { |
||
| 45 | return $this->processor; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return ConsoleIO |
||
| 50 | */ |
||
| 51 | public function getConsoleIO(): ConsoleIO |
||
| 52 | { |
||
| 53 | return $this->consoleIO; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return TestCase|null |
||
| 58 | */ |
||
| 59 | public function getTestCase() |
||
| 60 | { |
||
| 61 | return $this->testCase; |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 62 | } |
||
| 63 | } |