Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class ContainsTextFilter implements ICssFilter |
||
8 | { |
||
9 | private $text; |
||
10 | |||
11 | public function __construct(array $parameters) |
||
12 | { |
||
13 | $this->text = null; |
||
14 | if (count($parameters) > 0) { |
||
15 | $this->text = $parameters[0]; |
||
16 | } |
||
17 | } |
||
18 | |||
19 | public static function getFunctionName(): string |
||
22 | } |
||
23 | |||
24 | public function filterNodes(Crawler $crawler): ?Crawler |
||
38 | }); |
||
39 | } |
||
41 |