Passed
Pull Request — develop (#5)
by ANTHONIUS
04:08
created

RemoteCoverage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the doyo/behat-coverage-extension project.
5
 *
6
 * (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Behat\Coverage\Bridge\CodeCoverage;
15
16
use Doyo\Behat\Coverage\Event\CoverageEvent;
17
use Doyo\Behat\Coverage\Remote\CoverageRepository;
18
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
19
20
class RemoteCoverage implements EventSubscriberInterface
21
{
22
    private $repository;
23
24 1
    public function __construct(
25
        CoverageRepository $repository
26
    ) {
27 1
        $this->repository = $repository;
28
    }
29
30 1
    public static function getSubscribedEvents()
31
    {
32
        return [
33 1
            CoverageEvent::START   => 'onCoverageStarted',
34
            CoverageEvent::STOP    => ['onCoverageStopped', 999],
35
            CoverageEvent::REFRESH => 'onCoverageRefresh',
36
        ];
37
    }
38
39
    public function onCoverageStarted()
40
    {
41
    }
42
43
    public function onCoverageStopped()
44
    {
45
    }
46
47
    public function onCoverageRefresh()
48
    {
49
    }
50
}
51