1 | <?php |
||
7 | class Crawler |
||
8 | { |
||
9 | private $document; |
||
10 | |||
11 | 39 | public function __construct(Document $document) |
|
15 | |||
16 | /** |
||
17 | * @return string |
||
18 | */ |
||
19 | 39 | public function title() |
|
23 | |||
24 | /** |
||
25 | * @return mixed |
||
26 | */ |
||
27 | 39 | public function metaKeywords() |
|
44 | |||
45 | /** |
||
46 | * @param string $element |
||
47 | * @return array |
||
48 | */ |
||
49 | 39 | public function meta($element = null) |
|
64 | |||
65 | /** |
||
66 | * get source attributes of all image tags on the page |
||
67 | * @return array<String> |
||
68 | */ |
||
69 | 39 | public function images() |
|
79 | |||
80 | /** |
||
81 | * @param \Jclyons52\PHPQuery\Support\NodeCollection $metaTags |
||
82 | * @return array |
||
83 | */ |
||
84 | 39 | private function metaTagsToArray($metaTags) |
|
100 | } |
||
101 |