1 | <?php |
||
15 | class PurgeHtmlCrawler extends Crawler { |
||
16 | |||
17 | |||
18 | /** |
||
19 | * Modify the xPath query provided by CssSelector to |
||
20 | * find the first instance of a given element, this reduces |
||
21 | * search times compared to filter which returns a whole collection |
||
22 | * |
||
23 | * @param string $selector |
||
24 | * A css selector |
||
25 | * |
||
26 | * @return Crawler |
||
27 | * The first instance of selected element |
||
28 | */ |
||
29 | public function findFirstInstance($selector) { |
||
43 | |||
44 | } |
||
45 |