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