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\Sheets; 19 20class BasicFilter extends \Google\Collection 21{ 22 protected $collection_key = 'sortSpecs'; 23 protected $criteriaType = FilterCriteria::class; 24 protected $criteriaDataType = 'map'; 25 protected $filterSpecsType = FilterSpec::class; 26 protected $filterSpecsDataType = 'array'; 27 protected $rangeType = GridRange::class; 28 protected $rangeDataType = ''; 29 protected $sortSpecsType = SortSpec::class; 30 protected $sortSpecsDataType = 'array'; 31 32 /** 33 * @param FilterCriteria[] 34 */ 35 public function setCriteria($criteria) 36 { 37 $this->criteria = $criteria; 38 } 39 /** 40 * @return FilterCriteria[] 41 */ 42 public function getCriteria() 43 { 44 return $this->criteria; 45 } 46 /** 47 * @param FilterSpec[] 48 */ 49 public function setFilterSpecs($filterSpecs) 50 { 51 $this->filterSpecs = $filterSpecs; 52 } 53 /** 54 * @return FilterSpec[] 55 */ 56 public function getFilterSpecs() 57 { 58 return $this->filterSpecs; 59 } 60 /** 61 * @param GridRange 62 */ 63 public function setRange(GridRange $range) 64 { 65 $this->range = $range; 66 } 67 /** 68 * @return GridRange 69 */ 70 public function getRange() 71 { 72 return $this->range; 73 } 74 /** 75 * @param SortSpec[] 76 */ 77 public function setSortSpecs($sortSpecs) 78 { 79 $this->sortSpecs = $sortSpecs; 80 } 81 /** 82 * @return SortSpec[] 83 */ 84 public function getSortSpecs() 85 { 86 return $this->sortSpecs; 87 } 88} 89 90// Adding a class alias for backwards compatibility with the previous class name. 91class_alias(BasicFilter::class, 'Google_Service_Sheets_BasicFilter'); 92