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 RepricingRuleEligibleOfferMatcher extends \Google\Model
21{
22  protected $brandMatcherType = RepricingRuleEligibleOfferMatcherStringMatcher::class;
23  protected $brandMatcherDataType = '';
24  protected $itemGroupIdMatcherType = RepricingRuleEligibleOfferMatcherStringMatcher::class;
25  protected $itemGroupIdMatcherDataType = '';
26  /**
27   * @var string
28   */
29  public $matcherOption;
30  protected $offerIdMatcherType = RepricingRuleEligibleOfferMatcherStringMatcher::class;
31  protected $offerIdMatcherDataType = '';
32  /**
33   * @var bool
34   */
35  public $skipWhenOnPromotion;
36
37  /**
38   * @param RepricingRuleEligibleOfferMatcherStringMatcher
39   */
40  public function setBrandMatcher(RepricingRuleEligibleOfferMatcherStringMatcher $brandMatcher)
41  {
42    $this->brandMatcher = $brandMatcher;
43  }
44  /**
45   * @return RepricingRuleEligibleOfferMatcherStringMatcher
46   */
47  public function getBrandMatcher()
48  {
49    return $this->brandMatcher;
50  }
51  /**
52   * @param RepricingRuleEligibleOfferMatcherStringMatcher
53   */
54  public function setItemGroupIdMatcher(RepricingRuleEligibleOfferMatcherStringMatcher $itemGroupIdMatcher)
55  {
56    $this->itemGroupIdMatcher = $itemGroupIdMatcher;
57  }
58  /**
59   * @return RepricingRuleEligibleOfferMatcherStringMatcher
60   */
61  public function getItemGroupIdMatcher()
62  {
63    return $this->itemGroupIdMatcher;
64  }
65  /**
66   * @param string
67   */
68  public function setMatcherOption($matcherOption)
69  {
70    $this->matcherOption = $matcherOption;
71  }
72  /**
73   * @return string
74   */
75  public function getMatcherOption()
76  {
77    return $this->matcherOption;
78  }
79  /**
80   * @param RepricingRuleEligibleOfferMatcherStringMatcher
81   */
82  public function setOfferIdMatcher(RepricingRuleEligibleOfferMatcherStringMatcher $offerIdMatcher)
83  {
84    $this->offerIdMatcher = $offerIdMatcher;
85  }
86  /**
87   * @return RepricingRuleEligibleOfferMatcherStringMatcher
88   */
89  public function getOfferIdMatcher()
90  {
91    return $this->offerIdMatcher;
92  }
93  /**
94   * @param bool
95   */
96  public function setSkipWhenOnPromotion($skipWhenOnPromotion)
97  {
98    $this->skipWhenOnPromotion = $skipWhenOnPromotion;
99  }
100  /**
101   * @return bool
102   */
103  public function getSkipWhenOnPromotion()
104  {
105    return $this->skipWhenOnPromotion;
106  }
107}
108
109// Adding a class alias for backwards compatibility with the previous class name.
110class_alias(RepricingRuleEligibleOfferMatcher::class, 'Google_Service_ShoppingContent_RepricingRuleEligibleOfferMatcher');
111