Skip to content

Commit ef4316d

Browse files
committed
Remove final keyword and Implementat SelectorInterface
1 parent 3ee0f39 commit ef4316d

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/Driver/Selector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use SebastianBergmann\CodeCoverage\NoCodeCoverageDriverWithPathCoverageSupportAvailableException;
1515
use SebastianBergmann\Environment\Runtime;
1616

17-
final class Selector
17+
class Selector implements SelectorInterface
1818
{
1919
/**
2020
* @throws NoCodeCoverageDriverAvailableException

src/Driver/SelectorInterface.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of phpunit/php-code-coverage.
4+
*
5+
* (c) Sebastian Bergmann <sebastian@phpunit.de>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
10+
namespace SebastianBergmann\CodeCoverage\Driver;
11+
12+
use SebastianBergmann\CodeCoverage\Filter;
13+
14+
interface SelectorInterface
15+
{
16+
public function forLineCoverage(Filter $filter): Driver;
17+
public function forLineAndPathCoverage(Filter $filter): Driver;
18+
}

0 commit comments

Comments
 (0)