Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class PatternSymbolFilter implements SymbolFilterInterface |
||
10 | { |
||
11 | /** @var string */ |
||
12 | private $pattern; |
||
13 | |||
14 | /** |
||
15 | * Constructor. |
||
16 | * |
||
17 | * @param string $pattern |
||
18 | */ |
||
19 | 1 | public function __construct(string $pattern) |
|
22 | 1 | } |
|
23 | |||
24 | /** |
||
25 | * Filter the given symbol. |
||
26 | * |
||
27 | * @param string $symbol |
||
28 | * |
||
29 | * @return bool |
||
30 | */ |
||
31 | 7 | public function __invoke(string $symbol): bool |
|
40 |