PageRenderTime 64ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/contrib/Google_PlusService.php

https://bitbucket.org/synergylearning/campusconnect
PHP | 1525 lines | 1346 code | 45 blank | 134 comment | 16 complexity | c7853657af310fa339f9aa70ff056b00 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, LGPL-2.1, Apache-2.0, BSD-3-Clause, AGPL-3.0
  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "activities" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $plusService = new Google_PlusService(...);
  20. * $activities = $plusService->activities;
  21. * </code>
  22. */
  23. class Google_ActivitiesServiceResource extends Google_ServiceResource {
  24. /**
  25. * Search public activities. (activities.search)
  26. *
  27. * @param string $query Full-text search query string.
  28. * @param array $optParams Optional parameters.
  29. *
  30. * @opt_param string orderBy Specifies how to order search results.
  31. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token may be of any length.
  32. * @opt_param string maxResults The maximum number of activities to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  33. * @opt_param string language Specify the preferred language to search with. See search language codes for available values.
  34. * @return Google_ActivityFeed
  35. */
  36. public function search($query, $optParams = array()) {
  37. $params = array('query' => $query);
  38. $params = array_merge($params, $optParams);
  39. $data = $this->__call('search', array($params));
  40. if ($this->useObjects()) {
  41. return new Google_ActivityFeed($data);
  42. } else {
  43. return $data;
  44. }
  45. }
  46. /**
  47. * List all of the activities in the specified collection for a particular user. (activities.list)
  48. *
  49. * @param string $userId The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user.
  50. * @param string $collection The collection of activities to list.
  51. * @param array $optParams Optional parameters.
  52. *
  53. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
  54. * @opt_param string maxResults The maximum number of activities to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  55. * @return Google_ActivityFeed
  56. */
  57. public function listActivities($userId, $collection, $optParams = array()) {
  58. $params = array('userId' => $userId, 'collection' => $collection);
  59. $params = array_merge($params, $optParams);
  60. $data = $this->__call('list', array($params));
  61. if ($this->useObjects()) {
  62. return new Google_ActivityFeed($data);
  63. } else {
  64. return $data;
  65. }
  66. }
  67. /**
  68. * Get an activity. (activities.get)
  69. *
  70. * @param string $activityId The ID of the activity to get.
  71. * @param array $optParams Optional parameters.
  72. * @return Google_Activity
  73. */
  74. public function get($activityId, $optParams = array()) {
  75. $params = array('activityId' => $activityId);
  76. $params = array_merge($params, $optParams);
  77. $data = $this->__call('get', array($params));
  78. if ($this->useObjects()) {
  79. return new Google_Activity($data);
  80. } else {
  81. return $data;
  82. }
  83. }
  84. }
  85. /**
  86. * The "comments" collection of methods.
  87. * Typical usage is:
  88. * <code>
  89. * $plusService = new Google_PlusService(...);
  90. * $comments = $plusService->comments;
  91. * </code>
  92. */
  93. class Google_CommentsServiceResource extends Google_ServiceResource {
  94. /**
  95. * List all of the comments for an activity. (comments.list)
  96. *
  97. * @param string $activityId The ID of the activity to get comments for.
  98. * @param array $optParams Optional parameters.
  99. *
  100. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
  101. * @opt_param string maxResults The maximum number of comments to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  102. * @opt_param string sortOrder The order in which to sort the list of comments.
  103. * @return Google_CommentFeed
  104. */
  105. public function listComments($activityId, $optParams = array()) {
  106. $params = array('activityId' => $activityId);
  107. $params = array_merge($params, $optParams);
  108. $data = $this->__call('list', array($params));
  109. if ($this->useObjects()) {
  110. return new Google_CommentFeed($data);
  111. } else {
  112. return $data;
  113. }
  114. }
  115. /**
  116. * Get a comment. (comments.get)
  117. *
  118. * @param string $commentId The ID of the comment to get.
  119. * @param array $optParams Optional parameters.
  120. * @return Google_Comment
  121. */
  122. public function get($commentId, $optParams = array()) {
  123. $params = array('commentId' => $commentId);
  124. $params = array_merge($params, $optParams);
  125. $data = $this->__call('get', array($params));
  126. if ($this->useObjects()) {
  127. return new Google_Comment($data);
  128. } else {
  129. return $data;
  130. }
  131. }
  132. }
  133. /**
  134. * The "people" collection of methods.
  135. * Typical usage is:
  136. * <code>
  137. * $plusService = new Google_PlusService(...);
  138. * $people = $plusService->people;
  139. * </code>
  140. */
  141. class Google_PeopleServiceResource extends Google_ServiceResource {
  142. /**
  143. * List all of the people in the specified collection for a particular activity.
  144. * (people.listByActivity)
  145. *
  146. * @param string $activityId The ID of the activity to get the list of people for.
  147. * @param string $collection The collection of people to list.
  148. * @param array $optParams Optional parameters.
  149. *
  150. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
  151. * @opt_param string maxResults The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  152. * @return Google_PeopleFeed
  153. */
  154. public function listByActivity($activityId, $collection, $optParams = array()) {
  155. $params = array('activityId' => $activityId, 'collection' => $collection);
  156. $params = array_merge($params, $optParams);
  157. $data = $this->__call('listByActivity', array($params));
  158. if ($this->useObjects()) {
  159. return new Google_PeopleFeed($data);
  160. } else {
  161. return $data;
  162. }
  163. }
  164. /**
  165. * Search all public profiles. (people.search)
  166. *
  167. * @param string $query Specify a query string for full text search of public text in all profiles.
  168. * @param array $optParams Optional parameters.
  169. *
  170. * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token may be of any length.
  171. * @opt_param string maxResults The maximum number of people to include in the response, used for paging. For any response, the actual number returned may be less than the specified maxResults.
  172. * @opt_param string language Specify the preferred language to search with. See search language codes for available values.
  173. * @return Google_PeopleFeed
  174. */
  175. public function search($query, $optParams = array()) {
  176. $params = array('query' => $query);
  177. $params = array_merge($params, $optParams);
  178. $data = $this->__call('search', array($params));
  179. if ($this->useObjects()) {
  180. return new Google_PeopleFeed($data);
  181. } else {
  182. return $data;
  183. }
  184. }
  185. /**
  186. * Get a person's profile. (people.get)
  187. *
  188. * @param string $userId The ID of the person to get the profile for. The special value "me" can be used to indicate the authenticated user.
  189. * @param array $optParams Optional parameters.
  190. * @return Google_Person
  191. */
  192. public function get($userId, $optParams = array()) {
  193. $params = array('userId' => $userId);
  194. $params = array_merge($params, $optParams);
  195. $data = $this->__call('get', array($params));
  196. if ($this->useObjects()) {
  197. return new Google_Person($data);
  198. } else {
  199. return $data;
  200. }
  201. }
  202. }
  203. /**
  204. * Service definition for Google_Plus (v1).
  205. *
  206. * <p>
  207. * The Google+ API enables developers to build on top of the Google+ platform.
  208. * </p>
  209. *
  210. * <p>
  211. * For more information about this service, see the
  212. * <a href="https://developers.google.com/+/api/" target="_blank">API Documentation</a>
  213. * </p>
  214. *
  215. * @author Google, Inc.
  216. */
  217. class Google_PlusService extends Google_Service {
  218. public $activities;
  219. public $comments;
  220. public $people;
  221. /**
  222. * Constructs the internal representation of the Plus service.
  223. *
  224. * @param Google_Client $client
  225. */
  226. public function __construct(Google_Client $client) {
  227. $this->servicePath = 'plus/v1/';
  228. $this->version = 'v1';
  229. $this->serviceName = 'plus';
  230. $client->addService($this->serviceName, $this->version);
  231. $this->activities = new Google_ActivitiesServiceResource($this, $this->serviceName, 'activities', json_decode('{"methods": {"search": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"orderBy": {"default": "recent", "enum": ["best", "recent"], "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "10", "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "language": {"default": "", "type": "string", "location": "query"}, "query": {"required": true, "type": "string", "location": "query"}}, "id": "plus.activities.search", "httpMethod": "GET", "path": "activities", "response": {"$ref": "ActivityFeed"}}, "list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "alt": {"default": "json", "enum": ["json"], "type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["public"]}}, "id": "plus.activities.list", "httpMethod": "GET", "path": "people/{userId}/activities/{collection}", "response": {"$ref": "ActivityFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "type": "string", "location": "query"}}, "id": "plus.activities.get", "httpMethod": "GET", "path": "activities/{activityId}", "response": {"$ref": "Activity"}}}}', true));
  232. $this->comments = new Google_CommentsServiceResource($this, $this->serviceName, 'comments', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "alt": {"default": "json", "enum": ["json"], "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "0", "location": "query", "type": "integer"}, "sortOrder": {"default": "ascending", "enum": ["ascending", "descending"], "type": "string", "location": "query"}}, "id": "plus.comments.list", "httpMethod": "GET", "path": "activities/{activityId}/comments", "response": {"$ref": "CommentFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"commentId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.comments.get", "httpMethod": "GET", "path": "comments/{commentId}", "response": {"$ref": "Comment"}}}}', true));
  233. $this->people = new Google_PeopleServiceResource($this, $this->serviceName, 'people', json_decode('{"methods": {"listByActivity": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "activityId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "default": "20", "maximum": "100", "minimum": "1", "location": "query", "type": "integer"}, "collection": {"required": true, "type": "string", "location": "path", "enum": ["plusoners", "resharers"]}}, "id": "plus.people.listByActivity", "httpMethod": "GET", "path": "activities/{activityId}/people/{collection}", "response": {"$ref": "PeopleFeed"}}, "search": {"scopes": ["https://www.googleapis.com/auth/plus.me"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "default": "10", "maximum": "20", "minimum": "1", "location": "query", "type": "integer"}, "language": {"default": "", "type": "string", "location": "query"}, "query": {"required": true, "type": "string", "location": "query"}}, "id": "plus.people.search", "httpMethod": "GET", "path": "people", "response": {"$ref": "PeopleFeed"}}, "get": {"scopes": ["https://www.googleapis.com/auth/plus.me", "https://www.googleapis.com/auth/userinfo.email"], "parameters": {"userId": {"required": true, "type": "string", "location": "path"}}, "id": "plus.people.get", "httpMethod": "GET", "path": "people/{userId}", "response": {"$ref": "Person"}}}}', true));
  234. }
  235. }
  236. class Google_Acl extends Google_Model {
  237. protected $__itemsType = 'Google_PlusAclentryResource';
  238. protected $__itemsDataType = 'array';
  239. public $items;
  240. public $kind;
  241. public $description;
  242. public function setItems($items) {
  243. $this->assertIsArray($items, 'Google_PlusAclentryResource', __METHOD__);
  244. $this->items = $items;
  245. }
  246. public function getItems() {
  247. return $this->items;
  248. }
  249. public function setKind($kind) {
  250. $this->kind = $kind;
  251. }
  252. public function getKind() {
  253. return $this->kind;
  254. }
  255. public function setDescription($description) {
  256. $this->description = $description;
  257. }
  258. public function getDescription() {
  259. return $this->description;
  260. }
  261. }
  262. class Google_Activity extends Google_Model {
  263. public $placeName;
  264. public $kind;
  265. public $updated;
  266. protected $__providerType = 'Google_ActivityProvider';
  267. protected $__providerDataType = '';
  268. public $provider;
  269. public $title;
  270. public $url;
  271. public $geocode;
  272. protected $__objectType = 'Google_ActivityObject';
  273. protected $__objectDataType = '';
  274. public $object;
  275. public $placeId;
  276. protected $__actorType = 'Google_ActivityActor';
  277. protected $__actorDataType = '';
  278. public $actor;
  279. public $id;
  280. protected $__accessType = 'Google_Acl';
  281. protected $__accessDataType = '';
  282. public $access;
  283. public $verb;
  284. public $etag;
  285. public $radius;
  286. public $address;
  287. public $crosspostSource;
  288. public $annotation;
  289. public $published;
  290. public function setPlaceName($placeName) {
  291. $this->placeName = $placeName;
  292. }
  293. public function getPlaceName() {
  294. return $this->placeName;
  295. }
  296. public function setKind($kind) {
  297. $this->kind = $kind;
  298. }
  299. public function getKind() {
  300. return $this->kind;
  301. }
  302. public function setUpdated($updated) {
  303. $this->updated = $updated;
  304. }
  305. public function getUpdated() {
  306. return $this->updated;
  307. }
  308. public function setProvider(Google_ActivityProvider $provider) {
  309. $this->provider = $provider;
  310. }
  311. public function getProvider() {
  312. return $this->provider;
  313. }
  314. public function setTitle($title) {
  315. $this->title = $title;
  316. }
  317. public function getTitle() {
  318. return $this->title;
  319. }
  320. public function setUrl($url) {
  321. $this->url = $url;
  322. }
  323. public function getUrl() {
  324. return $this->url;
  325. }
  326. public function setGeocode($geocode) {
  327. $this->geocode = $geocode;
  328. }
  329. public function getGeocode() {
  330. return $this->geocode;
  331. }
  332. public function setObject(Google_ActivityObject $object) {
  333. $this->object = $object;
  334. }
  335. public function getObject() {
  336. return $this->object;
  337. }
  338. public function setPlaceId($placeId) {
  339. $this->placeId = $placeId;
  340. }
  341. public function getPlaceId() {
  342. return $this->placeId;
  343. }
  344. public function setActor(Google_ActivityActor $actor) {
  345. $this->actor = $actor;
  346. }
  347. public function getActor() {
  348. return $this->actor;
  349. }
  350. public function setId($id) {
  351. $this->id = $id;
  352. }
  353. public function getId() {
  354. return $this->id;
  355. }
  356. public function setAccess(Google_Acl $access) {
  357. $this->access = $access;
  358. }
  359. public function getAccess() {
  360. return $this->access;
  361. }
  362. public function setVerb($verb) {
  363. $this->verb = $verb;
  364. }
  365. public function getVerb() {
  366. return $this->verb;
  367. }
  368. public function setEtag($etag) {
  369. $this->etag = $etag;
  370. }
  371. public function getEtag() {
  372. return $this->etag;
  373. }
  374. public function setRadius($radius) {
  375. $this->radius = $radius;
  376. }
  377. public function getRadius() {
  378. return $this->radius;
  379. }
  380. public function setAddress($address) {
  381. $this->address = $address;
  382. }
  383. public function getAddress() {
  384. return $this->address;
  385. }
  386. public function setCrosspostSource($crosspostSource) {
  387. $this->crosspostSource = $crosspostSource;
  388. }
  389. public function getCrosspostSource() {
  390. return $this->crosspostSource;
  391. }
  392. public function setAnnotation($annotation) {
  393. $this->annotation = $annotation;
  394. }
  395. public function getAnnotation() {
  396. return $this->annotation;
  397. }
  398. public function setPublished($published) {
  399. $this->published = $published;
  400. }
  401. public function getPublished() {
  402. return $this->published;
  403. }
  404. }
  405. class Google_ActivityActor extends Google_Model {
  406. public $url;
  407. protected $__imageType = 'Google_ActivityActorImage';
  408. protected $__imageDataType = '';
  409. public $image;
  410. public $displayName;
  411. public $id;
  412. protected $__nameType = 'Google_ActivityActorName';
  413. protected $__nameDataType = '';
  414. public $name;
  415. public function setUrl($url) {
  416. $this->url = $url;
  417. }
  418. public function getUrl() {
  419. return $this->url;
  420. }
  421. public function setImage(Google_ActivityActorImage $image) {
  422. $this->image = $image;
  423. }
  424. public function getImage() {
  425. return $this->image;
  426. }
  427. public function setDisplayName($displayName) {
  428. $this->displayName = $displayName;
  429. }
  430. public function getDisplayName() {
  431. return $this->displayName;
  432. }
  433. public function setId($id) {
  434. $this->id = $id;
  435. }
  436. public function getId() {
  437. return $this->id;
  438. }
  439. public function setName(Google_ActivityActorName $name) {
  440. $this->name = $name;
  441. }
  442. public function getName() {
  443. return $this->name;
  444. }
  445. }
  446. class Google_ActivityActorImage extends Google_Model {
  447. public $url;
  448. public function setUrl($url) {
  449. $this->url = $url;
  450. }
  451. public function getUrl() {
  452. return $this->url;
  453. }
  454. }
  455. class Google_ActivityActorName extends Google_Model {
  456. public $givenName;
  457. public $familyName;
  458. public function setGivenName($givenName) {
  459. $this->givenName = $givenName;
  460. }
  461. public function getGivenName() {
  462. return $this->givenName;
  463. }
  464. public function setFamilyName($familyName) {
  465. $this->familyName = $familyName;
  466. }
  467. public function getFamilyName() {
  468. return $this->familyName;
  469. }
  470. }
  471. class Google_ActivityFeed extends Google_Model {
  472. public $nextPageToken;
  473. public $kind;
  474. public $title;
  475. protected $__itemsType = 'Google_Activity';
  476. protected $__itemsDataType = 'array';
  477. public $items;
  478. public $updated;
  479. public $nextLink;
  480. public $etag;
  481. public $id;
  482. public $selfLink;
  483. public function setNextPageToken($nextPageToken) {
  484. $this->nextPageToken = $nextPageToken;
  485. }
  486. public function getNextPageToken() {
  487. return $this->nextPageToken;
  488. }
  489. public function setKind($kind) {
  490. $this->kind = $kind;
  491. }
  492. public function getKind() {
  493. return $this->kind;
  494. }
  495. public function setTitle($title) {
  496. $this->title = $title;
  497. }
  498. public function getTitle() {
  499. return $this->title;
  500. }
  501. public function setItems($items) {
  502. $this->assertIsArray($items, 'Google_Activity', __METHOD__);
  503. $this->items = $items;
  504. }
  505. public function getItems() {
  506. return $this->items;
  507. }
  508. public function setUpdated($updated) {
  509. $this->updated = $updated;
  510. }
  511. public function getUpdated() {
  512. return $this->updated;
  513. }
  514. public function setNextLink($nextLink) {
  515. $this->nextLink = $nextLink;
  516. }
  517. public function getNextLink() {
  518. return $this->nextLink;
  519. }
  520. public function setEtag($etag) {
  521. $this->etag = $etag;
  522. }
  523. public function getEtag() {
  524. return $this->etag;
  525. }
  526. public function setId($id) {
  527. $this->id = $id;
  528. }
  529. public function getId() {
  530. return $this->id;
  531. }
  532. public function setSelfLink($selfLink) {
  533. $this->selfLink = $selfLink;
  534. }
  535. public function getSelfLink() {
  536. return $this->selfLink;
  537. }
  538. }
  539. class Google_ActivityObject extends Google_Model {
  540. protected $__resharersType = 'Google_ActivityObjectResharers';
  541. protected $__resharersDataType = '';
  542. public $resharers;
  543. protected $__attachmentsType = 'Google_ActivityObjectAttachments';
  544. protected $__attachmentsDataType = 'array';
  545. public $attachments;
  546. public $originalContent;
  547. protected $__plusonersType = 'Google_ActivityObjectPlusoners';
  548. protected $__plusonersDataType = '';
  549. public $plusoners;
  550. protected $__actorType = 'Google_ActivityObjectActor';
  551. protected $__actorDataType = '';
  552. public $actor;
  553. public $content;
  554. public $url;
  555. protected $__repliesType = 'Google_ActivityObjectReplies';
  556. protected $__repliesDataType = '';
  557. public $replies;
  558. public $id;
  559. public $objectType;
  560. public function setResharers(Google_ActivityObjectResharers $resharers) {
  561. $this->resharers = $resharers;
  562. }
  563. public function getResharers() {
  564. return $this->resharers;
  565. }
  566. public function setAttachments($attachments) {
  567. $this->assertIsArray($attachments, 'Google_ActivityObjectAttachments', __METHOD__);
  568. $this->attachments = $attachments;
  569. }
  570. public function getAttachments() {
  571. return $this->attachments;
  572. }
  573. public function setOriginalContent($originalContent) {
  574. $this->originalContent = $originalContent;
  575. }
  576. public function getOriginalContent() {
  577. return $this->originalContent;
  578. }
  579. public function setPlusoners(Google_ActivityObjectPlusoners $plusoners) {
  580. $this->plusoners = $plusoners;
  581. }
  582. public function getPlusoners() {
  583. return $this->plusoners;
  584. }
  585. public function setActor(Google_ActivityObjectActor $actor) {
  586. $this->actor = $actor;
  587. }
  588. public function getActor() {
  589. return $this->actor;
  590. }
  591. public function setContent($content) {
  592. $this->content = $content;
  593. }
  594. public function getContent() {
  595. return $this->content;
  596. }
  597. public function setUrl($url) {
  598. $this->url = $url;
  599. }
  600. public function getUrl() {
  601. return $this->url;
  602. }
  603. public function setReplies(Google_ActivityObjectReplies $replies) {
  604. $this->replies = $replies;
  605. }
  606. public function getReplies() {
  607. return $this->replies;
  608. }
  609. public function setId($id) {
  610. $this->id = $id;
  611. }
  612. public function getId() {
  613. return $this->id;
  614. }
  615. public function setObjectType($objectType) {
  616. $this->objectType = $objectType;
  617. }
  618. public function getObjectType() {
  619. return $this->objectType;
  620. }
  621. }
  622. class Google_ActivityObjectActor extends Google_Model {
  623. public $url;
  624. protected $__imageType = 'Google_ActivityObjectActorImage';
  625. protected $__imageDataType = '';
  626. public $image;
  627. public $displayName;
  628. public $id;
  629. public function setUrl($url) {
  630. $this->url = $url;
  631. }
  632. public function getUrl() {
  633. return $this->url;
  634. }
  635. public function setImage(Google_ActivityObjectActorImage $image) {
  636. $this->image = $image;
  637. }
  638. public function getImage() {
  639. return $this->image;
  640. }
  641. public function setDisplayName($displayName) {
  642. $this->displayName = $displayName;
  643. }
  644. public function getDisplayName() {
  645. return $this->displayName;
  646. }
  647. public function setId($id) {
  648. $this->id = $id;
  649. }
  650. public function getId() {
  651. return $this->id;
  652. }
  653. }
  654. class Google_ActivityObjectActorImage extends Google_Model {
  655. public $url;
  656. public function setUrl($url) {
  657. $this->url = $url;
  658. }
  659. public function getUrl() {
  660. return $this->url;
  661. }
  662. }
  663. class Google_ActivityObjectAttachments extends Google_Model {
  664. public $displayName;
  665. protected $__fullImageType = 'Google_ActivityObjectAttachmentsFullImage';
  666. protected $__fullImageDataType = '';
  667. public $fullImage;
  668. public $url;
  669. protected $__imageType = 'Google_ActivityObjectAttachmentsImage';
  670. protected $__imageDataType = '';
  671. public $image;
  672. public $content;
  673. protected $__embedType = 'Google_ActivityObjectAttachmentsEmbed';
  674. protected $__embedDataType = '';
  675. public $embed;
  676. public $id;
  677. public $objectType;
  678. public function setDisplayName($displayName) {
  679. $this->displayName = $displayName;
  680. }
  681. public function getDisplayName() {
  682. return $this->displayName;
  683. }
  684. public function setFullImage(Google_ActivityObjectAttachmentsFullImage $fullImage) {
  685. $this->fullImage = $fullImage;
  686. }
  687. public function getFullImage() {
  688. return $this->fullImage;
  689. }
  690. public function setUrl($url) {
  691. $this->url = $url;
  692. }
  693. public function getUrl() {
  694. return $this->url;
  695. }
  696. public function setImage(Google_ActivityObjectAttachmentsImage $image) {
  697. $this->image = $image;
  698. }
  699. public function getImage() {
  700. return $this->image;
  701. }
  702. public function setContent($content) {
  703. $this->content = $content;
  704. }
  705. public function getContent() {
  706. return $this->content;
  707. }
  708. public function setEmbed(Google_ActivityObjectAttachmentsEmbed $embed) {
  709. $this->embed = $embed;
  710. }
  711. public function getEmbed() {
  712. return $this->embed;
  713. }
  714. public function setId($id) {
  715. $this->id = $id;
  716. }
  717. public function getId() {
  718. return $this->id;
  719. }
  720. public function setObjectType($objectType) {
  721. $this->objectType = $objectType;
  722. }
  723. public function getObjectType() {
  724. return $this->objectType;
  725. }
  726. }
  727. class Google_ActivityObjectAttachmentsEmbed extends Google_Model {
  728. public $url;
  729. public $type;
  730. public function setUrl($url) {
  731. $this->url = $url;
  732. }
  733. public function getUrl() {
  734. return $this->url;
  735. }
  736. public function setType($type) {
  737. $this->type = $type;
  738. }
  739. public function getType() {
  740. return $this->type;
  741. }
  742. }
  743. class Google_ActivityObjectAttachmentsFullImage extends Google_Model {
  744. public $url;
  745. public $width;
  746. public $type;
  747. public $height;
  748. public function setUrl($url) {
  749. $this->url = $url;
  750. }
  751. public function getUrl() {
  752. return $this->url;
  753. }
  754. public function setWidth($width) {
  755. $this->width = $width;
  756. }
  757. public function getWidth() {
  758. return $this->width;
  759. }
  760. public function setType($type) {
  761. $this->type = $type;
  762. }
  763. public function getType() {
  764. return $this->type;
  765. }
  766. public function setHeight($height) {
  767. $this->height = $height;
  768. }
  769. public function getHeight() {
  770. return $this->height;
  771. }
  772. }
  773. class Google_ActivityObjectAttachmentsImage extends Google_Model {
  774. public $url;
  775. public $width;
  776. public $type;
  777. public $height;
  778. public function setUrl($url) {
  779. $this->url = $url;
  780. }
  781. public function getUrl() {
  782. return $this->url;
  783. }
  784. public function setWidth($width) {
  785. $this->width = $width;
  786. }
  787. public function getWidth() {
  788. return $this->width;
  789. }
  790. public function setType($type) {
  791. $this->type = $type;
  792. }
  793. public function getType() {
  794. return $this->type;
  795. }
  796. public function setHeight($height) {
  797. $this->height = $height;
  798. }
  799. public function getHeight() {
  800. return $this->height;
  801. }
  802. }
  803. class Google_ActivityObjectPlusoners extends Google_Model {
  804. public $totalItems;
  805. public $selfLink;
  806. public function setTotalItems($totalItems) {
  807. $this->totalItems = $totalItems;
  808. }
  809. public function getTotalItems() {
  810. return $this->totalItems;
  811. }
  812. public function setSelfLink($selfLink) {
  813. $this->selfLink = $selfLink;
  814. }
  815. public function getSelfLink() {
  816. return $this->selfLink;
  817. }
  818. }
  819. class Google_ActivityObjectReplies extends Google_Model {
  820. public $totalItems;
  821. public $selfLink;
  822. public function setTotalItems($totalItems) {
  823. $this->totalItems = $totalItems;
  824. }
  825. public function getTotalItems() {
  826. return $this->totalItems;
  827. }
  828. public function setSelfLink($selfLink) {
  829. $this->selfLink = $selfLink;
  830. }
  831. public function getSelfLink() {
  832. return $this->selfLink;
  833. }
  834. }
  835. class Google_ActivityObjectResharers extends Google_Model {
  836. public $totalItems;
  837. public $selfLink;
  838. public function setTotalItems($totalItems) {
  839. $this->totalItems = $totalItems;
  840. }
  841. public function getTotalItems() {
  842. return $this->totalItems;
  843. }
  844. public function setSelfLink($selfLink) {
  845. $this->selfLink = $selfLink;
  846. }
  847. public function getSelfLink() {
  848. return $this->selfLink;
  849. }
  850. }
  851. class Google_ActivityProvider extends Google_Model {
  852. public $title;
  853. public function setTitle($title) {
  854. $this->title = $title;
  855. }
  856. public function getTitle() {
  857. return $this->title;
  858. }
  859. }
  860. class Google_Comment extends Google_Model {
  861. protected $__inReplyToType = 'Google_CommentInReplyTo';
  862. protected $__inReplyToDataType = 'array';
  863. public $inReplyTo;
  864. public $kind;
  865. protected $__objectType = 'Google_CommentObject';
  866. protected $__objectDataType = '';
  867. public $object;
  868. public $updated;
  869. protected $__actorType = 'Google_CommentActor';
  870. protected $__actorDataType = '';
  871. public $actor;
  872. public $verb;
  873. public $etag;
  874. public $published;
  875. public $id;
  876. public $selfLink;
  877. public function setInReplyTo($inReplyTo) {
  878. $this->assertIsArray($inReplyTo, 'Google_CommentInReplyTo', __METHOD__);
  879. $this->inReplyTo = $inReplyTo;
  880. }
  881. public function getInReplyTo() {
  882. return $this->inReplyTo;
  883. }
  884. public function setKind($kind) {
  885. $this->kind = $kind;
  886. }
  887. public function getKind() {
  888. return $this->kind;
  889. }
  890. public function setObject(Google_CommentObject $object) {
  891. $this->object = $object;
  892. }
  893. public function getObject() {
  894. return $this->object;
  895. }
  896. public function setUpdated($updated) {
  897. $this->updated = $updated;
  898. }
  899. public function getUpdated() {
  900. return $this->updated;
  901. }
  902. public function setActor(Google_CommentActor $actor) {
  903. $this->actor = $actor;
  904. }
  905. public function getActor() {
  906. return $this->actor;
  907. }
  908. public function setVerb($verb) {
  909. $this->verb = $verb;
  910. }
  911. public function getVerb() {
  912. return $this->verb;
  913. }
  914. public function setEtag($etag) {
  915. $this->etag = $etag;
  916. }
  917. public function getEtag() {
  918. return $this->etag;
  919. }
  920. public function setPublished($published) {
  921. $this->published = $published;
  922. }
  923. public function getPublished() {
  924. return $this->published;
  925. }
  926. public function setId($id) {
  927. $this->id = $id;
  928. }
  929. public function getId() {
  930. return $this->id;
  931. }
  932. public function setSelfLink($selfLink) {
  933. $this->selfLink = $selfLink;
  934. }
  935. public function getSelfLink() {
  936. return $this->selfLink;
  937. }
  938. }
  939. class Google_CommentActor extends Google_Model {
  940. public $url;
  941. protected $__imageType = 'Google_CommentActorImage';
  942. protected $__imageDataType = '';
  943. public $image;
  944. public $displayName;
  945. public $id;
  946. public function setUrl($url) {
  947. $this->url = $url;
  948. }
  949. public function getUrl() {
  950. return $this->url;
  951. }
  952. public function setImage(Google_CommentActorImage $image) {
  953. $this->image = $image;
  954. }
  955. public function getImage() {
  956. return $this->image;
  957. }
  958. public function setDisplayName($displayName) {
  959. $this->displayName = $displayName;
  960. }
  961. public function getDisplayName() {
  962. return $this->displayName;
  963. }
  964. public function setId($id) {
  965. $this->id = $id;
  966. }
  967. public function getId() {
  968. return $this->id;
  969. }
  970. }
  971. class Google_CommentActorImage extends Google_Model {
  972. public $url;
  973. public function setUrl($url) {
  974. $this->url = $url;
  975. }
  976. public function getUrl() {
  977. return $this->url;
  978. }
  979. }
  980. class Google_CommentFeed extends Google_Model {
  981. public $nextPageToken;
  982. public $kind;
  983. public $title;
  984. protected $__itemsType = 'Google_Comment';
  985. protected $__itemsDataType = 'array';
  986. public $items;
  987. public $updated;
  988. public $nextLink;
  989. public $etag;
  990. public $id;
  991. public function setNextPageToken($nextPageToken) {
  992. $this->nextPageToken = $nextPageToken;
  993. }
  994. public function getNextPageToken() {
  995. return $this->nextPageToken;
  996. }
  997. public function setKind($kind) {
  998. $this->kind = $kind;
  999. }
  1000. public function getKind() {
  1001. return $this->kind;
  1002. }
  1003. public function setTitle($title) {
  1004. $this->title = $title;
  1005. }
  1006. public function getTitle() {
  1007. return $this->title;
  1008. }
  1009. public function setItems($items) {
  1010. $this->assertIsArray($items, 'Google_Comment', __METHOD__);
  1011. $this->items = $items;
  1012. }
  1013. public function getItems() {
  1014. return $this->items;
  1015. }
  1016. public function setUpdated($updated) {
  1017. $this->updated = $updated;
  1018. }
  1019. public function getUpdated() {
  1020. return $this->updated;
  1021. }
  1022. public function setNextLink($nextLink) {
  1023. $this->nextLink = $nextLink;
  1024. }
  1025. public function getNextLink() {
  1026. return $this->nextLink;
  1027. }
  1028. public function setEtag($etag) {
  1029. $this->etag = $etag;
  1030. }
  1031. public function getEtag() {
  1032. return $this->etag;
  1033. }
  1034. public function setId($id) {
  1035. $this->id = $id;
  1036. }
  1037. public function getId() {
  1038. return $this->id;
  1039. }
  1040. }
  1041. class Google_CommentInReplyTo extends Google_Model {
  1042. public $url;
  1043. public $id;
  1044. public function setUrl($url) {
  1045. $this->url = $url;
  1046. }
  1047. public function getUrl() {
  1048. return $this->url;
  1049. }
  1050. public function setId($id) {
  1051. $this->id = $id;
  1052. }
  1053. public function getId() {
  1054. return $this->id;
  1055. }
  1056. }
  1057. class Google_CommentObject extends Google_Model {
  1058. public $content;
  1059. public $objectType;
  1060. public function setContent($content) {
  1061. $this->content = $content;
  1062. }
  1063. public function getContent() {
  1064. return $this->content;
  1065. }
  1066. public function setObjectType($objectType) {
  1067. $this->objectType = $objectType;
  1068. }
  1069. public function getObjectType() {
  1070. return $this->objectType;
  1071. }
  1072. }
  1073. class Google_PeopleFeed extends Google_Model {
  1074. public $nextPageToken;
  1075. public $kind;
  1076. public $title;
  1077. protected $__itemsType = 'Google_Person';
  1078. protected $__itemsDataType = 'array';
  1079. public $items;
  1080. public $etag;
  1081. public $selfLink;
  1082. public function setNextPageToken($nextPageToken) {
  1083. $this->nextPageToken = $nextPageToken;
  1084. }
  1085. public function getNextPageToken() {
  1086. return $this->nextPageToken;
  1087. }
  1088. public function setKind($kind) {
  1089. $this->kind = $kind;
  1090. }
  1091. public function getKind() {
  1092. return $this->kind;
  1093. }
  1094. public function setTitle($title) {
  1095. $this->title = $title;
  1096. }
  1097. public function getTitle() {
  1098. return $this->title;
  1099. }
  1100. public function setItems($items) {
  1101. $this->assertIsArray($items, 'Google_Person', __METHOD__);
  1102. $this->items = $items;
  1103. }
  1104. public function getItems() {
  1105. return $this->items;
  1106. }
  1107. public function setEtag($etag) {
  1108. $this->etag = $etag;
  1109. }
  1110. public function getEtag() {
  1111. return $this->etag;
  1112. }
  1113. public function setSelfLink($selfLink) {
  1114. $this->selfLink = $selfLink;
  1115. }
  1116. public function getSelfLink() {
  1117. return $this->selfLink;
  1118. }
  1119. }
  1120. class Google_Person extends Google_Model {
  1121. public $relationshipStatus;
  1122. protected $__organizationsType = 'Google_PersonOrganizations';
  1123. protected $__organizationsDataType = 'array';
  1124. public $organizations;
  1125. public $kind;
  1126. public $displayName;
  1127. protected $__nameType = 'Google_PersonName';
  1128. protected $__nameDataType = '';
  1129. public $name;
  1130. public $url;
  1131. public $gender;
  1132. public $aboutMe;
  1133. public $tagline;
  1134. protected $__urlsType = 'Google_PersonUrls';
  1135. protected $__urlsDataType = 'array';
  1136. public $urls;
  1137. protected $__placesLivedType = 'Google_PersonPlacesLived';
  1138. protected $__placesLivedDataType = 'array';
  1139. public $placesLived;
  1140. protected $__emailsType = 'Google_PersonEmails';
  1141. protected $__emailsDataType = 'array';
  1142. public $emails;
  1143. public $nickname;
  1144. public $birthday;
  1145. public $etag;
  1146. protected $__imageType = 'Google_PersonImage';
  1147. protected $__imageDataType = '';
  1148. public $image;
  1149. public $hasApp;
  1150. public $id;
  1151. public $languagesSpoken;
  1152. public $currentLocation;
  1153. public $objectType;
  1154. public function setRelationshipStatus($relationshipStatus) {
  1155. $this->relationshipStatus = $relationshipStatus;
  1156. }
  1157. public function getRelationshipStatus() {
  1158. return $this->relationshipStatus;
  1159. }
  1160. public function setOrganizations($organizations) {
  1161. $this->assertIsArray($organizations, 'Google_PersonOrganizations', __METHOD__);
  1162. $this->organizations = $organizations;
  1163. }
  1164. public function getOrganizations() {
  1165. return $this->organizations;
  1166. }
  1167. public function setKind($kind) {
  1168. $this->kind = $kind;
  1169. }
  1170. public function getKind() {
  1171. return $this->kind;
  1172. }
  1173. public function setDisplayName($displayName) {
  1174. $this->displayName = $displayName;
  1175. }
  1176. public function getDisplayName() {
  1177. return $this->displayName;
  1178. }
  1179. public function setName(Google_PersonName $name) {
  1180. $this->name = $name;
  1181. }
  1182. public function getName() {
  1183. return $this->name;
  1184. }
  1185. public function setUrl($url) {
  1186. $this->url = $url;
  1187. }
  1188. public function getUrl() {
  1189. return $this->url;
  1190. }
  1191. public function setGender($gender) {
  1192. $this->gender = $gender;
  1193. }
  1194. public function getGender() {
  1195. return $this->gender;
  1196. }
  1197. public function setAboutMe($aboutMe) {
  1198. $this->aboutMe = $aboutMe;
  1199. }
  1200. public function getAboutMe() {
  1201. return $this->aboutMe;
  1202. }
  1203. public function setTagline($tagline) {
  1204. $this->tagline = $tagline;
  1205. }
  1206. public function getTagline() {
  1207. return $this->tagline;
  1208. }
  1209. public function setUrls($urls) {
  1210. $this->assertIsArray($urls, 'Google_PersonUrls', __METHOD__);
  1211. $this->urls = $urls;
  1212. }
  1213. public function getUrls() {
  1214. return $this->urls;
  1215. }
  1216. public function setPlacesLived($placesLived) {
  1217. $this->assertIsArray($placesLived, 'Google_PersonPlacesLived', __METHOD__);
  1218. $this->placesLived = $placesLived;
  1219. }
  1220. public function getPlacesLived() {
  1221. return $this->placesLived;
  1222. }
  1223. public function setEmails($emails) {
  1224. $this->assertIsArray($emails, 'Google_PersonEmails', __METHOD__);
  1225. $this->emails = $emails;
  1226. }
  1227. public function getEmails() {
  1228. return $this->emails;
  1229. }
  1230. public function setNickname($nickname) {
  1231. $this->nickname = $nickname;
  1232. }
  1233. public function getNickname() {
  1234. return $this->nickname;
  1235. }
  1236. public function setBirthday($birthday) {
  1237. $this->birthday = $birthday;
  1238. }
  1239. public function getBirthday() {
  1240. return $this->birthday;
  1241. }
  1242. public function setEtag($etag) {
  1243. $this->etag = $etag;
  1244. }
  1245. public function getEtag() {
  1246. return $this->etag;
  1247. }
  1248. public function setImage(Google_PersonImage $image) {
  1249. $this->image = $image;
  1250. }
  1251. public function getImage() {
  1252. return $this->image;
  1253. }
  1254. public function setHasApp($hasApp) {
  1255. $this->hasApp = $hasApp;
  1256. }
  1257. public function getHasApp() {
  1258. return $this->hasApp;
  1259. }
  1260. public function setId($id) {
  1261. $this->id = $id;
  1262. }
  1263. public function getId() {
  1264. return $this->id;
  1265. }
  1266. public function setLanguagesSpoken($languagesSpoken) {
  1267. $this->languagesSpoken = $languagesSpoken;
  1268. }
  1269. public function getLanguagesSpoken() {
  1270. return $this->languagesSpoken;
  1271. }
  1272. public function setCurrentLocation($currentLocation) {
  1273. $this->currentLocation = $currentLocation;
  1274. }
  1275. public function getCurrentLocation() {
  1276. return $this->currentLocation;
  1277. }
  1278. public function setObjectType($objectType) {
  1279. $this->objectType = $objectType;
  1280. }
  1281. public function getObjectType() {
  1282. return $this->objectType;
  1283. }
  1284. }
  1285. class Google_PersonEmails extends Google_Model {
  1286. public $type;
  1287. public $primary;
  1288. public $value;
  1289. public function setType($type) {
  1290. $this->type = $type;
  1291. }
  1292. public function getType() {
  1293. return $this->type;
  1294. }
  1295. public function setPrimary($primary) {
  1296. $this->primary = $primary;
  1297. }
  1298. public function getPrimary() {
  1299. return $this->primary;
  1300. }
  1301. public function setValue($value) {
  1302. $this->value = $value;
  1303. }
  1304. public function getValue() {
  1305. return $this->value;
  1306. }
  1307. }
  1308. class Google_PersonImage extends Google_Model {
  1309. public $url;
  1310. public function setUrl($url) {
  1311. $this->url = $url;
  1312. }
  1313. public function getUrl() {
  1314. return $this->url;
  1315. }
  1316. }
  1317. class Google_PersonName extends Google_Model {
  1318. public $honorificPrefix;
  1319. public $middleName;
  1320. public $familyName;
  1321. public $formatted;
  1322. public $givenName;
  1323. public $honorificSuffix;
  1324. public function setHonorificPrefix($honorificPrefix) {
  1325. $this->honorificPrefix = $honorificPrefix;
  1326. }
  1327. public function getHonorificPrefix() {
  1328. return $this->honorificPrefix;
  1329. }
  1330. public function setMiddleName($middleName) {
  1331. $this->middleName = $middleName;
  1332. }
  1333. public function getMiddleName() {
  1334. return $this->middleName;
  1335. }
  1336. public function setFamilyName($familyName) {
  1337. $this->familyName = $familyName;
  1338. }
  1339. public function getFamilyName() {
  1340. return $this->familyName;
  1341. }
  1342. public function setFormatted($formatted) {
  1343. $this->formatted = $formatted;
  1344. }
  1345. public function getFormatted() {
  1346. return $this->formatted;
  1347. }
  1348. public function setGivenName($givenName) {
  1349. $this->givenName = $givenName;
  1350. }
  1351. public function getGivenName() {
  1352. return $this->givenName;
  1353. }
  1354. public function setHonorificSuffix($honorificSuffix) {
  1355. $this->honorificSuffix = $honorificSuffix;
  1356. }
  1357. public function getHonorificSuffix() {
  1358. return $this->honorificSuffix;
  1359. }
  1360. }
  1361. class Google_PersonOrganizations extends Google_Model {
  1362. public $startDate;
  1363. public $endDate;
  1364. public $description;
  1365. public $title;
  1366. public $primary;
  1367. public $location;
  1368. public $department;
  1369. public $type;
  1370. public $name;
  1371. public function setStartDate($startDate) {
  1372. $this->startDate = $startDate;
  1373. }
  1374. public function getStartDate() {
  1375. return $this->startDate;
  1376. }
  1377. public function setEndDate($endDate) {
  1378. $this->endDate = $endDate;
  1379. }
  1380. public function getEndDate() {
  1381. return $this->endDate;
  1382. }
  1383. public function setDescription($description) {
  1384. $this->description = $description;
  1385. }
  1386. public function getDescription() {
  1387. return $this->description;
  1388. }
  1389. public function setTitle($title) {
  1390. $this->title = $title;
  1391. }
  1392. public function getTitle() {
  1393. return $this->title;
  1394. }
  1395. public function setPrimary($primary) {
  1396. $this->primary = $primary;
  1397. }
  1398. public function getPrimary() {
  1399. return $this->primary;
  1400. }
  1401. public function setLocation($location) {
  1402. $this->location = $location;
  1403. }
  1404. public function getLocation() {
  1405. return $this->location;
  1406. }
  1407. public function setDepartment($department) {
  1408. $this->department = $department;
  1409. }
  1410. public function getDepartment() {
  1411. return $this->department;
  1412. }
  1413. public function setType($type) {
  1414. $this->type = $type;
  1415. }
  1416. public function getType() {
  1417. return $this->type;
  1418. }
  1419. public function setName($name) {
  1420. $this->name = $name;
  1421. }
  1422. public function getName() {
  1423. return $this->name;
  1424. }
  1425. }
  1426. class Google_PersonPlacesLived extends Google_Model {
  1427. public $primary;
  1428. public $value;
  1429. public function setPrimary($primary) {
  1430. $this->primary = $primary;
  1431. }
  1432. public function getPrimary() {
  1433. return $this->primary;
  1434. }
  1435. public function setValue($value) {
  1436. $this->value = $value;
  1437. }
  1438. public function getValue() {
  1439. return $this->value;
  1440. }
  1441. }
  1442. class Google_PersonUrls extends Google_Model {
  1443. public $type;
  1444. public $primary;
  1445. public $value;
  1446. public function setType($type) {
  1447. $this->type = $type;
  1448. }
  1449. public function getType() {
  1450. return $this->type;
  1451. }
  1452. public function setPrimary($primary) {
  1453. $this->primary = $primary;
  1454. }
  1455. public function getPrimary() {
  1456. return $this->primary;
  1457. }
  1458. public function setValue($value) {
  1459. $this->value = $value;
  1460. }
  1461. public function getValue() {
  1462. return $this->value;
  1463. }
  1464. }
  1465. class Google_PlusAclentryResource extends Google_Model {
  1466. public $type;
  1467. public $id;
  1468. public function setType($type) {
  1469. $this->type = $type;
  1470. }
  1471. public function getType() {
  1472. return $this->type;
  1473. }
  1474. public function setId($id) {
  1475. $this->id = $id;
  1476. }
  1477. public function getId() {
  1478. return $this->id;
  1479. }
  1480. }