[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 |
|
---|
| 18 | namespace Google\Service\MapsPlaces;
|
---|
| 19 |
|
---|
| 20 | class GoogleMapsPlacesV1PlaceOpeningHours extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'weekdayDescriptions';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $nextCloseTime;
|
---|
| 27 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $nextOpenTime;
|
---|
| 31 | /**
|
---|
| 32 | * @var bool
|
---|
| 33 | */
|
---|
| 34 | public $openNow;
|
---|
| 35 | protected $periodsType = GoogleMapsPlacesV1PlaceOpeningHoursPeriod::class;
|
---|
| 36 | protected $periodsDataType = 'array';
|
---|
| 37 | /**
|
---|
| 38 | * @var string
|
---|
| 39 | */
|
---|
| 40 | public $secondaryHoursType;
|
---|
| 41 | protected $specialDaysType = GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay::class;
|
---|
| 42 | protected $specialDaysDataType = 'array';
|
---|
| 43 | /**
|
---|
| 44 | * @var string[]
|
---|
| 45 | */
|
---|
| 46 | public $weekdayDescriptions;
|
---|
| 47 |
|
---|
| 48 | /**
|
---|
| 49 | * @param string
|
---|
| 50 | */
|
---|
| 51 | public function setNextCloseTime($nextCloseTime)
|
---|
| 52 | {
|
---|
| 53 | $this->nextCloseTime = $nextCloseTime;
|
---|
| 54 | }
|
---|
| 55 | /**
|
---|
| 56 | * @return string
|
---|
| 57 | */
|
---|
| 58 | public function getNextCloseTime()
|
---|
| 59 | {
|
---|
| 60 | return $this->nextCloseTime;
|
---|
| 61 | }
|
---|
| 62 | /**
|
---|
| 63 | * @param string
|
---|
| 64 | */
|
---|
| 65 | public function setNextOpenTime($nextOpenTime)
|
---|
| 66 | {
|
---|
| 67 | $this->nextOpenTime = $nextOpenTime;
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * @return string
|
---|
| 71 | */
|
---|
| 72 | public function getNextOpenTime()
|
---|
| 73 | {
|
---|
| 74 | return $this->nextOpenTime;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @param bool
|
---|
| 78 | */
|
---|
| 79 | public function setOpenNow($openNow)
|
---|
| 80 | {
|
---|
| 81 | $this->openNow = $openNow;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @return bool
|
---|
| 85 | */
|
---|
| 86 | public function getOpenNow()
|
---|
| 87 | {
|
---|
| 88 | return $this->openNow;
|
---|
| 89 | }
|
---|
| 90 | /**
|
---|
| 91 | * @param GoogleMapsPlacesV1PlaceOpeningHoursPeriod[]
|
---|
| 92 | */
|
---|
| 93 | public function setPeriods($periods)
|
---|
| 94 | {
|
---|
| 95 | $this->periods = $periods;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @return GoogleMapsPlacesV1PlaceOpeningHoursPeriod[]
|
---|
| 99 | */
|
---|
| 100 | public function getPeriods()
|
---|
| 101 | {
|
---|
| 102 | return $this->periods;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @param string
|
---|
| 106 | */
|
---|
| 107 | public function setSecondaryHoursType($secondaryHoursType)
|
---|
| 108 | {
|
---|
| 109 | $this->secondaryHoursType = $secondaryHoursType;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @return string
|
---|
| 113 | */
|
---|
| 114 | public function getSecondaryHoursType()
|
---|
| 115 | {
|
---|
| 116 | return $this->secondaryHoursType;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @param GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay[]
|
---|
| 120 | */
|
---|
| 121 | public function setSpecialDays($specialDays)
|
---|
| 122 | {
|
---|
| 123 | $this->specialDays = $specialDays;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @return GoogleMapsPlacesV1PlaceOpeningHoursSpecialDay[]
|
---|
| 127 | */
|
---|
| 128 | public function getSpecialDays()
|
---|
| 129 | {
|
---|
| 130 | return $this->specialDays;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @param string[]
|
---|
| 134 | */
|
---|
| 135 | public function setWeekdayDescriptions($weekdayDescriptions)
|
---|
| 136 | {
|
---|
| 137 | $this->weekdayDescriptions = $weekdayDescriptions;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @return string[]
|
---|
| 141 | */
|
---|
| 142 | public function getWeekdayDescriptions()
|
---|
| 143 | {
|
---|
| 144 | return $this->weekdayDescriptions;
|
---|
| 145 | }
|
---|
| 146 | }
|
---|
| 147 |
|
---|
| 148 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 149 | class_alias(GoogleMapsPlacesV1PlaceOpeningHours::class, 'Google_Service_MapsPlaces_GoogleMapsPlacesV1PlaceOpeningHours');
|
---|