| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ExactPackageFilter implements ViolationFilterInterface |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | private $package; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Constructor. |
||
| 18 | * |
||
| 19 | * @param string $package |
||
| 20 | */ |
||
| 21 | 2 | public function __construct(string $package) |
|
| 22 | { |
||
| 23 | 2 | $this->package = $package; |
|
| 24 | 2 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Filter violations. |
||
| 28 | * |
||
| 29 | * @param ViolationInterface $violation |
||
| 30 | * |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | 2 | public function __invoke(ViolationInterface $violation): bool |
|
| 36 | } |
||
| 37 | } |
||
| 38 |