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 ShippingSettings extends \Google\Collection
21{
22  protected $collection_key = 'warehouses';
23  /**
24   * @var string
25   */
26  public $accountId;
27  protected $postalCodeGroupsType = PostalCodeGroup::class;
28  protected $postalCodeGroupsDataType = 'array';
29  protected $servicesType = Service::class;
30  protected $servicesDataType = 'array';
31  protected $warehousesType = Warehouse::class;
32  protected $warehousesDataType = 'array';
33
34  /**
35   * @param string
36   */
37  public function setAccountId($accountId)
38  {
39    $this->accountId = $accountId;
40  }
41  /**
42   * @return string
43   */
44  public function getAccountId()
45  {
46    return $this->accountId;
47  }
48  /**
49   * @param PostalCodeGroup[]
50   */
51  public function setPostalCodeGroups($postalCodeGroups)
52  {
53    $this->postalCodeGroups = $postalCodeGroups;
54  }
55  /**
56   * @return PostalCodeGroup[]
57   */
58  public function getPostalCodeGroups()
59  {
60    return $this->postalCodeGroups;
61  }
62  /**
63   * @param Service[]
64   */
65  public function setServices($services)
66  {
67    $this->services = $services;
68  }
69  /**
70   * @return Service[]
71   */
72  public function getServices()
73  {
74    return $this->services;
75  }
76  /**
77   * @param Warehouse[]
78   */
79  public function setWarehouses($warehouses)
80  {
81    $this->warehouses = $warehouses;
82  }
83  /**
84   * @return Warehouse[]
85   */
86  public function getWarehouses()
87  {
88    return $this->warehouses;
89  }
90}
91
92// Adding a class alias for backwards compatibility with the previous class name.
93class_alias(ShippingSettings::class, 'Google_Service_ShoppingContent_ShippingSettings');
94