1 | <?php |
||
13 | class CrawlerSession |
||
14 | { |
||
15 | use TraverseTrait; |
||
16 | |||
17 | /** |
||
18 | * CrawlerInterface |
||
19 | */ |
||
20 | private $crawler; |
||
21 | |||
22 | /** |
||
23 | * @param CrawlerInterface $crawler |
||
24 | */ |
||
25 | 1 | public function __construct(CrawlerInterface $crawler) |
|
29 | |||
30 | /** |
||
31 | * @param Query\AbstractQuery $query |
||
32 | * @return array |
||
33 | */ |
||
34 | 1 | public function queryIds(Query\AbstractQuery $query) |
|
38 | |||
39 | /** |
||
40 | * @return CrawlerInterface |
||
41 | */ |
||
42 | 1 | public function getCrawler() |
|
46 | |||
47 | /** |
||
48 | * @param string $uri |
||
49 | * @return self |
||
50 | */ |
||
51 | 1 | public function open($uri) |
|
61 | |||
62 | /** |
||
63 | * @return UriInterface |
||
64 | */ |
||
65 | 1 | public function getUri() |
|
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 1 | public function getHtml() |
|
77 | } |
||
78 |