1 | <?php |
||
9 | class Preview |
||
10 | { |
||
11 | protected $result; |
||
12 | |||
13 | protected $client; |
||
14 | |||
15 | public $document; |
||
16 | |||
17 | public $url; |
||
18 | |||
19 | protected $urlComponents; |
||
20 | |||
21 | 27 | public function __construct(Client $client) |
|
25 | |||
26 | /** |
||
27 | * @param string $url |
||
28 | * @return Document |
||
29 | */ |
||
30 | 27 | public function fetch($url) |
|
44 | |||
45 | /** |
||
46 | * @return mixed |
||
47 | */ |
||
48 | 3 | public function title() |
|
52 | |||
53 | /** |
||
54 | * @return mixed |
||
55 | */ |
||
56 | 6 | public function metaDescription() |
|
60 | |||
61 | /** |
||
62 | * @return mixed |
||
63 | */ |
||
64 | 3 | public function metaKeywords() |
|
75 | |||
76 | /** |
||
77 | * @return mixed |
||
78 | */ |
||
79 | 6 | public function metaTitle() |
|
83 | |||
84 | /** |
||
85 | * @return array |
||
86 | */ |
||
87 | 3 | public function meta() |
|
96 | |||
97 | /** |
||
98 | * @return array |
||
99 | */ |
||
100 | 6 | public function images() |
|
110 | |||
111 | 3 | public function render($type = 'card') |
|
123 | |||
124 | /** |
||
125 | * @param string $url |
||
126 | * @return array |
||
127 | */ |
||
128 | 6 | private function formatUrl($url) |
|
140 | } |
||
141 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.