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 DeliveryTime extends \Google\Collection
21{
22  protected $collection_key = 'warehouseBasedDeliveryTimes';
23  protected $cutoffTimeType = CutoffTime::class;
24  protected $cutoffTimeDataType = '';
25  protected $handlingBusinessDayConfigType = BusinessDayConfig::class;
26  protected $handlingBusinessDayConfigDataType = '';
27  protected $holidayCutoffsType = HolidayCutoff::class;
28  protected $holidayCutoffsDataType = 'array';
29  /**
30   * @var string
31   */
32  public $maxHandlingTimeInDays;
33  /**
34   * @var string
35   */
36  public $maxTransitTimeInDays;
37  /**
38   * @var string
39   */
40  public $minHandlingTimeInDays;
41  /**
42   * @var string
43   */
44  public $minTransitTimeInDays;
45  protected $transitBusinessDayConfigType = BusinessDayConfig::class;
46  protected $transitBusinessDayConfigDataType = '';
47  protected $transitTimeTableType = TransitTable::class;
48  protected $transitTimeTableDataType = '';
49  protected $warehouseBasedDeliveryTimesType = WarehouseBasedDeliveryTime::class;
50  protected $warehouseBasedDeliveryTimesDataType = 'array';
51
52  /**
53   * @param CutoffTime
54   */
55  public function setCutoffTime(CutoffTime $cutoffTime)
56  {
57    $this->cutoffTime = $cutoffTime;
58  }
59  /**
60   * @return CutoffTime
61   */
62  public function getCutoffTime()
63  {
64    return $this->cutoffTime;
65  }
66  /**
67   * @param BusinessDayConfig
68   */
69  public function setHandlingBusinessDayConfig(BusinessDayConfig $handlingBusinessDayConfig)
70  {
71    $this->handlingBusinessDayConfig = $handlingBusinessDayConfig;
72  }
73  /**
74   * @return BusinessDayConfig
75   */
76  public function getHandlingBusinessDayConfig()
77  {
78    return $this->handlingBusinessDayConfig;
79  }
80  /**
81   * @param HolidayCutoff[]
82   */
83  public function setHolidayCutoffs($holidayCutoffs)
84  {
85    $this->holidayCutoffs = $holidayCutoffs;
86  }
87  /**
88   * @return HolidayCutoff[]
89   */
90  public function getHolidayCutoffs()
91  {
92    return $this->holidayCutoffs;
93  }
94  /**
95   * @param string
96   */
97  public function setMaxHandlingTimeInDays($maxHandlingTimeInDays)
98  {
99    $this->maxHandlingTimeInDays = $maxHandlingTimeInDays;
100  }
101  /**
102   * @return string
103   */
104  public function getMaxHandlingTimeInDays()
105  {
106    return $this->maxHandlingTimeInDays;
107  }
108  /**
109   * @param string
110   */
111  public function setMaxTransitTimeInDays($maxTransitTimeInDays)
112  {
113    $this->maxTransitTimeInDays = $maxTransitTimeInDays;
114  }
115  /**
116   * @return string
117   */
118  public function getMaxTransitTimeInDays()
119  {
120    return $this->maxTransitTimeInDays;
121  }
122  /**
123   * @param string
124   */
125  public function setMinHandlingTimeInDays($minHandlingTimeInDays)
126  {
127    $this->minHandlingTimeInDays = $minHandlingTimeInDays;
128  }
129  /**
130   * @return string
131   */
132  public function getMinHandlingTimeInDays()
133  {
134    return $this->minHandlingTimeInDays;
135  }
136  /**
137   * @param string
138   */
139  public function setMinTransitTimeInDays($minTransitTimeInDays)
140  {
141    $this->minTransitTimeInDays = $minTransitTimeInDays;
142  }
143  /**
144   * @return string
145   */
146  public function getMinTransitTimeInDays()
147  {
148    return $this->minTransitTimeInDays;
149  }
150  /**
151   * @param BusinessDayConfig
152   */
153  public function setTransitBusinessDayConfig(BusinessDayConfig $transitBusinessDayConfig)
154  {
155    $this->transitBusinessDayConfig = $transitBusinessDayConfig;
156  }
157  /**
158   * @return BusinessDayConfig
159   */
160  public function getTransitBusinessDayConfig()
161  {
162    return $this->transitBusinessDayConfig;
163  }
164  /**
165   * @param TransitTable
166   */
167  public function setTransitTimeTable(TransitTable $transitTimeTable)
168  {
169    $this->transitTimeTable = $transitTimeTable;
170  }
171  /**
172   * @return TransitTable
173   */
174  public function getTransitTimeTable()
175  {
176    return $this->transitTimeTable;
177  }
178  /**
179   * @param WarehouseBasedDeliveryTime[]
180   */
181  public function setWarehouseBasedDeliveryTimes($warehouseBasedDeliveryTimes)
182  {
183    $this->warehouseBasedDeliveryTimes = $warehouseBasedDeliveryTimes;
184  }
185  /**
186   * @return WarehouseBasedDeliveryTime[]
187   */
188  public function getWarehouseBasedDeliveryTimes()
189  {
190    return $this->warehouseBasedDeliveryTimes;
191  }
192}
193
194// Adding a class alias for backwards compatibility with the previous class name.
195class_alias(DeliveryTime::class, 'Google_Service_ShoppingContent_DeliveryTime');
196