source: vendor/google/apiclient-services/src/Dfareporting/GeoTargeting.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 2.6 KB
Line 
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\Dfareporting;
19
20class GeoTargeting extends \Google\Collection
21{
22 protected $collection_key = 'regions';
23 protected $citiesType = City::class;
24 protected $citiesDataType = 'array';
25 protected $countriesType = Country::class;
26 protected $countriesDataType = 'array';
27 /**
28 * @var bool
29 */
30 public $excludeCountries;
31 protected $metrosType = Metro::class;
32 protected $metrosDataType = 'array';
33 protected $postalCodesType = PostalCode::class;
34 protected $postalCodesDataType = 'array';
35 protected $regionsType = Region::class;
36 protected $regionsDataType = 'array';
37
38 /**
39 * @param City[]
40 */
41 public function setCities($cities)
42 {
43 $this->cities = $cities;
44 }
45 /**
46 * @return City[]
47 */
48 public function getCities()
49 {
50 return $this->cities;
51 }
52 /**
53 * @param Country[]
54 */
55 public function setCountries($countries)
56 {
57 $this->countries = $countries;
58 }
59 /**
60 * @return Country[]
61 */
62 public function getCountries()
63 {
64 return $this->countries;
65 }
66 /**
67 * @param bool
68 */
69 public function setExcludeCountries($excludeCountries)
70 {
71 $this->excludeCountries = $excludeCountries;
72 }
73 /**
74 * @return bool
75 */
76 public function getExcludeCountries()
77 {
78 return $this->excludeCountries;
79 }
80 /**
81 * @param Metro[]
82 */
83 public function setMetros($metros)
84 {
85 $this->metros = $metros;
86 }
87 /**
88 * @return Metro[]
89 */
90 public function getMetros()
91 {
92 return $this->metros;
93 }
94 /**
95 * @param PostalCode[]
96 */
97 public function setPostalCodes($postalCodes)
98 {
99 $this->postalCodes = $postalCodes;
100 }
101 /**
102 * @return PostalCode[]
103 */
104 public function getPostalCodes()
105 {
106 return $this->postalCodes;
107 }
108 /**
109 * @param Region[]
110 */
111 public function setRegions($regions)
112 {
113 $this->regions = $regions;
114 }
115 /**
116 * @return Region[]
117 */
118 public function getRegions()
119 {
120 return $this->regions;
121 }
122}
123
124// Adding a class alias for backwards compatibility with the previous class name.
125class_alias(GeoTargeting::class, 'Google_Service_Dfareporting_GeoTargeting');
Note: See TracBrowser for help on using the repository browser.