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\Blogger;
19
20class Post extends \Google\Collection
21{
22  protected $collection_key = 'labels';
23  protected $authorType = PostAuthor::class;
24  protected $authorDataType = '';
25  protected $blogType = PostBlog::class;
26  protected $blogDataType = '';
27  /**
28   * @var string
29   */
30  public $content;
31  /**
32   * @var string
33   */
34  public $customMetaData;
35  /**
36   * @var string
37   */
38  public $etag;
39  /**
40   * @var string
41   */
42  public $id;
43  protected $imagesType = PostImages::class;
44  protected $imagesDataType = 'array';
45  /**
46   * @var string
47   */
48  public $kind;
49  /**
50   * @var string[]
51   */
52  public $labels;
53  protected $locationType = PostLocation::class;
54  protected $locationDataType = '';
55  /**
56   * @var string
57   */
58  public $published;
59  /**
60   * @var string
61   */
62  public $readerComments;
63  protected $repliesType = PostReplies::class;
64  protected $repliesDataType = '';
65  /**
66   * @var string
67   */
68  public $selfLink;
69  /**
70   * @var string
71   */
72  public $status;
73  /**
74   * @var string
75   */
76  public $title;
77  /**
78   * @var string
79   */
80  public $titleLink;
81  /**
82   * @var string
83   */
84  public $updated;
85  /**
86   * @var string
87   */
88  public $url;
89
90  /**
91   * @param PostAuthor
92   */
93  public function setAuthor(PostAuthor $author)
94  {
95    $this->author = $author;
96  }
97  /**
98   * @return PostAuthor
99   */
100  public function getAuthor()
101  {
102    return $this->author;
103  }
104  /**
105   * @param PostBlog
106   */
107  public function setBlog(PostBlog $blog)
108  {
109    $this->blog = $blog;
110  }
111  /**
112   * @return PostBlog
113   */
114  public function getBlog()
115  {
116    return $this->blog;
117  }
118  /**
119   * @param string
120   */
121  public function setContent($content)
122  {
123    $this->content = $content;
124  }
125  /**
126   * @return string
127   */
128  public function getContent()
129  {
130    return $this->content;
131  }
132  /**
133   * @param string
134   */
135  public function setCustomMetaData($customMetaData)
136  {
137    $this->customMetaData = $customMetaData;
138  }
139  /**
140   * @return string
141   */
142  public function getCustomMetaData()
143  {
144    return $this->customMetaData;
145  }
146  /**
147   * @param string
148   */
149  public function setEtag($etag)
150  {
151    $this->etag = $etag;
152  }
153  /**
154   * @return string
155   */
156  public function getEtag()
157  {
158    return $this->etag;
159  }
160  /**
161   * @param string
162   */
163  public function setId($id)
164  {
165    $this->id = $id;
166  }
167  /**
168   * @return string
169   */
170  public function getId()
171  {
172    return $this->id;
173  }
174  /**
175   * @param PostImages[]
176   */
177  public function setImages($images)
178  {
179    $this->images = $images;
180  }
181  /**
182   * @return PostImages[]
183   */
184  public function getImages()
185  {
186    return $this->images;
187  }
188  /**
189   * @param string
190   */
191  public function setKind($kind)
192  {
193    $this->kind = $kind;
194  }
195  /**
196   * @return string
197   */
198  public function getKind()
199  {
200    return $this->kind;
201  }
202  /**
203   * @param string[]
204   */
205  public function setLabels($labels)
206  {
207    $this->labels = $labels;
208  }
209  /**
210   * @return string[]
211   */
212  public function getLabels()
213  {
214    return $this->labels;
215  }
216  /**
217   * @param PostLocation
218   */
219  public function setLocation(PostLocation $location)
220  {
221    $this->location = $location;
222  }
223  /**
224   * @return PostLocation
225   */
226  public function getLocation()
227  {
228    return $this->location;
229  }
230  /**
231   * @param string
232   */
233  public function setPublished($published)
234  {
235    $this->published = $published;
236  }
237  /**
238   * @return string
239   */
240  public function getPublished()
241  {
242    return $this->published;
243  }
244  /**
245   * @param string
246   */
247  public function setReaderComments($readerComments)
248  {
249    $this->readerComments = $readerComments;
250  }
251  /**
252   * @return string
253   */
254  public function getReaderComments()
255  {
256    return $this->readerComments;
257  }
258  /**
259   * @param PostReplies
260   */
261  public function setReplies(PostReplies $replies)
262  {
263    $this->replies = $replies;
264  }
265  /**
266   * @return PostReplies
267   */
268  public function getReplies()
269  {
270    return $this->replies;
271  }
272  /**
273   * @param string
274   */
275  public function setSelfLink($selfLink)
276  {
277    $this->selfLink = $selfLink;
278  }
279  /**
280   * @return string
281   */
282  public function getSelfLink()
283  {
284    return $this->selfLink;
285  }
286  /**
287   * @param string
288   */
289  public function setStatus($status)
290  {
291    $this->status = $status;
292  }
293  /**
294   * @return string
295   */
296  public function getStatus()
297  {
298    return $this->status;
299  }
300  /**
301   * @param string
302   */
303  public function setTitle($title)
304  {
305    $this->title = $title;
306  }
307  /**
308   * @return string
309   */
310  public function getTitle()
311  {
312    return $this->title;
313  }
314  /**
315   * @param string
316   */
317  public function setTitleLink($titleLink)
318  {
319    $this->titleLink = $titleLink;
320  }
321  /**
322   * @return string
323   */
324  public function getTitleLink()
325  {
326    return $this->titleLink;
327  }
328  /**
329   * @param string
330   */
331  public function setUpdated($updated)
332  {
333    $this->updated = $updated;
334  }
335  /**
336   * @return string
337   */
338  public function getUpdated()
339  {
340    return $this->updated;
341  }
342  /**
343   * @param string
344   */
345  public function setUrl($url)
346  {
347    $this->url = $url;
348  }
349  /**
350   * @return string
351   */
352  public function getUrl()
353  {
354    return $this->url;
355  }
356}
357
358// Adding a class alias for backwards compatibility with the previous class name.
359class_alias(Post::class, 'Google_Service_Blogger_Post');
360