Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 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 | { |
||
16 | $this->text = $parameters[0]; |
||
17 | } |
||
18 | } |
||
19 | |||
20 | public static function getFunctionName(): string |
||
23 | } |
||
24 | |||
25 | public function filterNodes(Crawler $crawler): ?Crawler { |
||
40 | }); |
||
41 | } |
||
44 | } |