source: vendor/google/apiclient-services/src/CustomSearchAPI/Result.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 6 weeks ago

Upload project files

  • Property mode set to 100644
File size: 4.8 KB
RevLine 
[e3d4e0a]1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\CustomSearchAPI;
19
20class Result extends \Google\Collection
21{
22 protected $collection_key = 'labels';
23 /**
24 * @var string
25 */
26 public $cacheId;
27 /**
28 * @var string
29 */
30 public $displayLink;
31 /**
32 * @var string
33 */
34 public $fileFormat;
35 /**
36 * @var string
37 */
38 public $formattedUrl;
39 /**
40 * @var string
41 */
42 public $htmlFormattedUrl;
43 /**
44 * @var string
45 */
46 public $htmlSnippet;
47 /**
48 * @var string
49 */
50 public $htmlTitle;
51 protected $imageType = ResultImage::class;
52 protected $imageDataType = '';
53 /**
54 * @var string
55 */
56 public $kind;
57 protected $labelsType = ResultLabels::class;
58 protected $labelsDataType = 'array';
59 /**
60 * @var string
61 */
62 public $link;
63 /**
64 * @var string
65 */
66 public $mime;
67 /**
68 * @var array[]
69 */
70 public $pagemap;
71 /**
72 * @var string
73 */
74 public $snippet;
75 /**
76 * @var string
77 */
78 public $title;
79
80 /**
81 * @param string
82 */
83 public function setCacheId($cacheId)
84 {
85 $this->cacheId = $cacheId;
86 }
87 /**
88 * @return string
89 */
90 public function getCacheId()
91 {
92 return $this->cacheId;
93 }
94 /**
95 * @param string
96 */
97 public function setDisplayLink($displayLink)
98 {
99 $this->displayLink = $displayLink;
100 }
101 /**
102 * @return string
103 */
104 public function getDisplayLink()
105 {
106 return $this->displayLink;
107 }
108 /**
109 * @param string
110 */
111 public function setFileFormat($fileFormat)
112 {
113 $this->fileFormat = $fileFormat;
114 }
115 /**
116 * @return string
117 */
118 public function getFileFormat()
119 {
120 return $this->fileFormat;
121 }
122 /**
123 * @param string
124 */
125 public function setFormattedUrl($formattedUrl)
126 {
127 $this->formattedUrl = $formattedUrl;
128 }
129 /**
130 * @return string
131 */
132 public function getFormattedUrl()
133 {
134 return $this->formattedUrl;
135 }
136 /**
137 * @param string
138 */
139 public function setHtmlFormattedUrl($htmlFormattedUrl)
140 {
141 $this->htmlFormattedUrl = $htmlFormattedUrl;
142 }
143 /**
144 * @return string
145 */
146 public function getHtmlFormattedUrl()
147 {
148 return $this->htmlFormattedUrl;
149 }
150 /**
151 * @param string
152 */
153 public function setHtmlSnippet($htmlSnippet)
154 {
155 $this->htmlSnippet = $htmlSnippet;
156 }
157 /**
158 * @return string
159 */
160 public function getHtmlSnippet()
161 {
162 return $this->htmlSnippet;
163 }
164 /**
165 * @param string
166 */
167 public function setHtmlTitle($htmlTitle)
168 {
169 $this->htmlTitle = $htmlTitle;
170 }
171 /**
172 * @return string
173 */
174 public function getHtmlTitle()
175 {
176 return $this->htmlTitle;
177 }
178 /**
179 * @param ResultImage
180 */
181 public function setImage(ResultImage $image)
182 {
183 $this->image = $image;
184 }
185 /**
186 * @return ResultImage
187 */
188 public function getImage()
189 {
190 return $this->image;
191 }
192 /**
193 * @param string
194 */
195 public function setKind($kind)
196 {
197 $this->kind = $kind;
198 }
199 /**
200 * @return string
201 */
202 public function getKind()
203 {
204 return $this->kind;
205 }
206 /**
207 * @param ResultLabels[]
208 */
209 public function setLabels($labels)
210 {
211 $this->labels = $labels;
212 }
213 /**
214 * @return ResultLabels[]
215 */
216 public function getLabels()
217 {
218 return $this->labels;
219 }
220 /**
221 * @param string
222 */
223 public function setLink($link)
224 {
225 $this->link = $link;
226 }
227 /**
228 * @return string
229 */
230 public function getLink()
231 {
232 return $this->link;
233 }
234 /**
235 * @param string
236 */
237 public function setMime($mime)
238 {
239 $this->mime = $mime;
240 }
241 /**
242 * @return string
243 */
244 public function getMime()
245 {
246 return $this->mime;
247 }
248 /**
249 * @param array[]
250 */
251 public function setPagemap($pagemap)
252 {
253 $this->pagemap = $pagemap;
254 }
255 /**
256 * @return array[]
257 */
258 public function getPagemap()
259 {
260 return $this->pagemap;
261 }
262 /**
263 * @param string
264 */
265 public function setSnippet($snippet)
266 {
267 $this->snippet = $snippet;
268 }
269 /**
270 * @return string
271 */
272 public function getSnippet()
273 {
274 return $this->snippet;
275 }
276 /**
277 * @param string
278 */
279 public function setTitle($title)
280 {
281 $this->title = $title;
282 }
283 /**
284 * @return string
285 */
286 public function getTitle()
287 {
288 return $this->title;
289 }
290}
291
292// Adding a class alias for backwards compatibility with the previous class name.
293class_alias(Result::class, 'Google_Service_CustomSearchAPI_Result');
Note: See TracBrowser for help on using the repository browser.