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\ShoppingContent; 19 20class DateTime extends \Google\Model 21{ 22 /** 23 * @var int 24 */ 25 public $day; 26 /** 27 * @var int 28 */ 29 public $hours; 30 /** 31 * @var int 32 */ 33 public $minutes; 34 /** 35 * @var int 36 */ 37 public $month; 38 /** 39 * @var int 40 */ 41 public $nanos; 42 /** 43 * @var int 44 */ 45 public $seconds; 46 protected $timeZoneType = TimeZone::class; 47 protected $timeZoneDataType = ''; 48 /** 49 * @var string 50 */ 51 public $utcOffset; 52 /** 53 * @var int 54 */ 55 public $year; 56 57 /** 58 * @param int 59 */ 60 public function setDay($day) 61 { 62 $this->day = $day; 63 } 64 /** 65 * @return int 66 */ 67 public function getDay() 68 { 69 return $this->day; 70 } 71 /** 72 * @param int 73 */ 74 public function setHours($hours) 75 { 76 $this->hours = $hours; 77 } 78 /** 79 * @return int 80 */ 81 public function getHours() 82 { 83 return $this->hours; 84 } 85 /** 86 * @param int 87 */ 88 public function setMinutes($minutes) 89 { 90 $this->minutes = $minutes; 91 } 92 /** 93 * @return int 94 */ 95 public function getMinutes() 96 { 97 return $this->minutes; 98 } 99 /** 100 * @param int 101 */ 102 public function setMonth($month) 103 { 104 $this->month = $month; 105 } 106 /** 107 * @return int 108 */ 109 public function getMonth() 110 { 111 return $this->month; 112 } 113 /** 114 * @param int 115 */ 116 public function setNanos($nanos) 117 { 118 $this->nanos = $nanos; 119 } 120 /** 121 * @return int 122 */ 123 public function getNanos() 124 { 125 return $this->nanos; 126 } 127 /** 128 * @param int 129 */ 130 public function setSeconds($seconds) 131 { 132 $this->seconds = $seconds; 133 } 134 /** 135 * @return int 136 */ 137 public function getSeconds() 138 { 139 return $this->seconds; 140 } 141 /** 142 * @param TimeZone 143 */ 144 public function setTimeZone(TimeZone $timeZone) 145 { 146 $this->timeZone = $timeZone; 147 } 148 /** 149 * @return TimeZone 150 */ 151 public function getTimeZone() 152 { 153 return $this->timeZone; 154 } 155 /** 156 * @param string 157 */ 158 public function setUtcOffset($utcOffset) 159 { 160 $this->utcOffset = $utcOffset; 161 } 162 /** 163 * @return string 164 */ 165 public function getUtcOffset() 166 { 167 return $this->utcOffset; 168 } 169 /** 170 * @param int 171 */ 172 public function setYear($year) 173 { 174 $this->year = $year; 175 } 176 /** 177 * @return int 178 */ 179 public function getYear() 180 { 181 return $this->year; 182 } 183} 184 185// Adding a class alias for backwards compatibility with the previous class name. 186class_alias(DateTime::class, 'Google_Service_ShoppingContent_DateTime'); 187