source: vendor/google/apiclient-services/src/ShoppingContent/InputField.php

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

Upload project files

  • Property mode set to 100644
File size: 2.7 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\ShoppingContent;
19
20class InputField extends \Google\Model
21{
22 protected $checkboxInputType = InputFieldCheckboxInput::class;
23 protected $checkboxInputDataType = '';
24 protected $choiceInputType = InputFieldChoiceInput::class;
25 protected $choiceInputDataType = '';
26 /**
27 * @var string
28 */
29 public $id;
30 protected $labelType = TextWithTooltip::class;
31 protected $labelDataType = '';
32 /**
33 * @var bool
34 */
35 public $required;
36 protected $textInputType = InputFieldTextInput::class;
37 protected $textInputDataType = '';
38
39 /**
40 * @param InputFieldCheckboxInput
41 */
42 public function setCheckboxInput(InputFieldCheckboxInput $checkboxInput)
43 {
44 $this->checkboxInput = $checkboxInput;
45 }
46 /**
47 * @return InputFieldCheckboxInput
48 */
49 public function getCheckboxInput()
50 {
51 return $this->checkboxInput;
52 }
53 /**
54 * @param InputFieldChoiceInput
55 */
56 public function setChoiceInput(InputFieldChoiceInput $choiceInput)
57 {
58 $this->choiceInput = $choiceInput;
59 }
60 /**
61 * @return InputFieldChoiceInput
62 */
63 public function getChoiceInput()
64 {
65 return $this->choiceInput;
66 }
67 /**
68 * @param string
69 */
70 public function setId($id)
71 {
72 $this->id = $id;
73 }
74 /**
75 * @return string
76 */
77 public function getId()
78 {
79 return $this->id;
80 }
81 /**
82 * @param TextWithTooltip
83 */
84 public function setLabel(TextWithTooltip $label)
85 {
86 $this->label = $label;
87 }
88 /**
89 * @return TextWithTooltip
90 */
91 public function getLabel()
92 {
93 return $this->label;
94 }
95 /**
96 * @param bool
97 */
98 public function setRequired($required)
99 {
100 $this->required = $required;
101 }
102 /**
103 * @return bool
104 */
105 public function getRequired()
106 {
107 return $this->required;
108 }
109 /**
110 * @param InputFieldTextInput
111 */
112 public function setTextInput(InputFieldTextInput $textInput)
113 {
114 $this->textInput = $textInput;
115 }
116 /**
117 * @return InputFieldTextInput
118 */
119 public function getTextInput()
120 {
121 return $this->textInput;
122 }
123}
124
125// Adding a class alias for backwards compatibility with the previous class name.
126class_alias(InputField::class, 'Google_Service_ShoppingContent_InputField');
Note: See TracBrowser for help on using the repository browser.