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\AnalyticsData; 19 20class Filter extends \Google\Model 21{ 22 protected $betweenFilterType = BetweenFilter::class; 23 protected $betweenFilterDataType = ''; 24 /** 25 * @var string 26 */ 27 public $fieldName; 28 protected $inListFilterType = InListFilter::class; 29 protected $inListFilterDataType = ''; 30 protected $numericFilterType = NumericFilter::class; 31 protected $numericFilterDataType = ''; 32 protected $stringFilterType = StringFilter::class; 33 protected $stringFilterDataType = ''; 34 35 /** 36 * @param BetweenFilter 37 */ 38 public function setBetweenFilter(BetweenFilter $betweenFilter) 39 { 40 $this->betweenFilter = $betweenFilter; 41 } 42 /** 43 * @return BetweenFilter 44 */ 45 public function getBetweenFilter() 46 { 47 return $this->betweenFilter; 48 } 49 /** 50 * @param string 51 */ 52 public function setFieldName($fieldName) 53 { 54 $this->fieldName = $fieldName; 55 } 56 /** 57 * @return string 58 */ 59 public function getFieldName() 60 { 61 return $this->fieldName; 62 } 63 /** 64 * @param InListFilter 65 */ 66 public function setInListFilter(InListFilter $inListFilter) 67 { 68 $this->inListFilter = $inListFilter; 69 } 70 /** 71 * @return InListFilter 72 */ 73 public function getInListFilter() 74 { 75 return $this->inListFilter; 76 } 77 /** 78 * @param NumericFilter 79 */ 80 public function setNumericFilter(NumericFilter $numericFilter) 81 { 82 $this->numericFilter = $numericFilter; 83 } 84 /** 85 * @return NumericFilter 86 */ 87 public function getNumericFilter() 88 { 89 return $this->numericFilter; 90 } 91 /** 92 * @param StringFilter 93 */ 94 public function setStringFilter(StringFilter $stringFilter) 95 { 96 $this->stringFilter = $stringFilter; 97 } 98 /** 99 * @return StringFilter 100 */ 101 public function getStringFilter() 102 { 103 return $this->stringFilter; 104 } 105} 106 107// Adding a class alias for backwards compatibility with the previous class name. 108class_alias(Filter::class, 'Google_Service_AnalyticsData_Filter'); 109