|
| 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 | + |
| 18 | +namespace Google\Service\HomeGraphService; |
| 19 | + |
| 20 | +class Events extends \Google\Collection |
| 21 | +{ |
| 22 | + protected $collection_key = 'events'; |
| 23 | + /** |
| 24 | + * Optional. The ID of the provider component if the events are associated |
| 25 | + * with a specific component. Optional for WHDM events, required for UDDM |
| 26 | + * events. |
| 27 | + * |
| 28 | + * @var string |
| 29 | + */ |
| 30 | + public $componentId; |
| 31 | + protected $eventsType = EventData::class; |
| 32 | + protected $eventsDataType = 'array'; |
| 33 | + |
| 34 | + /** |
| 35 | + * Optional. The ID of the provider component if the events are associated |
| 36 | + * with a specific component. Optional for WHDM events, required for UDDM |
| 37 | + * events. |
| 38 | + * |
| 39 | + * @param string $componentId |
| 40 | + */ |
| 41 | + public function setComponentId($componentId) |
| 42 | + { |
| 43 | + $this->componentId = $componentId; |
| 44 | + } |
| 45 | + /** |
| 46 | + * @return string |
| 47 | + */ |
| 48 | + public function getComponentId() |
| 49 | + { |
| 50 | + return $this->componentId; |
| 51 | + } |
| 52 | + /** |
| 53 | + * Required. List of events associated with the component. |
| 54 | + * |
| 55 | + * @param EventData[] $events |
| 56 | + */ |
| 57 | + public function setEvents($events) |
| 58 | + { |
| 59 | + $this->events = $events; |
| 60 | + } |
| 61 | + /** |
| 62 | + * @return EventData[] |
| 63 | + */ |
| 64 | + public function getEvents() |
| 65 | + { |
| 66 | + return $this->events; |
| 67 | + } |
| 68 | +} |
| 69 | + |
| 70 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 71 | +class_alias(Events::class, 'Google_Service_HomeGraphService_Events'); |
0 commit comments