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\Forms; 19 20class Item extends \Google\Model 21{ 22 /** 23 * @var string 24 */ 25 public $description; 26 protected $imageItemType = ImageItem::class; 27 protected $imageItemDataType = ''; 28 /** 29 * @var string 30 */ 31 public $itemId; 32 protected $pageBreakItemType = PageBreakItem::class; 33 protected $pageBreakItemDataType = ''; 34 protected $questionGroupItemType = QuestionGroupItem::class; 35 protected $questionGroupItemDataType = ''; 36 protected $questionItemType = QuestionItem::class; 37 protected $questionItemDataType = ''; 38 protected $textItemType = TextItem::class; 39 protected $textItemDataType = ''; 40 /** 41 * @var string 42 */ 43 public $title; 44 protected $videoItemType = VideoItem::class; 45 protected $videoItemDataType = ''; 46 47 /** 48 * @param string 49 */ 50 public function setDescription($description) 51 { 52 $this->description = $description; 53 } 54 /** 55 * @return string 56 */ 57 public function getDescription() 58 { 59 return $this->description; 60 } 61 /** 62 * @param ImageItem 63 */ 64 public function setImageItem(ImageItem $imageItem) 65 { 66 $this->imageItem = $imageItem; 67 } 68 /** 69 * @return ImageItem 70 */ 71 public function getImageItem() 72 { 73 return $this->imageItem; 74 } 75 /** 76 * @param string 77 */ 78 public function setItemId($itemId) 79 { 80 $this->itemId = $itemId; 81 } 82 /** 83 * @return string 84 */ 85 public function getItemId() 86 { 87 return $this->itemId; 88 } 89 /** 90 * @param PageBreakItem 91 */ 92 public function setPageBreakItem(PageBreakItem $pageBreakItem) 93 { 94 $this->pageBreakItem = $pageBreakItem; 95 } 96 /** 97 * @return PageBreakItem 98 */ 99 public function getPageBreakItem() 100 { 101 return $this->pageBreakItem; 102 } 103 /** 104 * @param QuestionGroupItem 105 */ 106 public function setQuestionGroupItem(QuestionGroupItem $questionGroupItem) 107 { 108 $this->questionGroupItem = $questionGroupItem; 109 } 110 /** 111 * @return QuestionGroupItem 112 */ 113 public function getQuestionGroupItem() 114 { 115 return $this->questionGroupItem; 116 } 117 /** 118 * @param QuestionItem 119 */ 120 public function setQuestionItem(QuestionItem $questionItem) 121 { 122 $this->questionItem = $questionItem; 123 } 124 /** 125 * @return QuestionItem 126 */ 127 public function getQuestionItem() 128 { 129 return $this->questionItem; 130 } 131 /** 132 * @param TextItem 133 */ 134 public function setTextItem(TextItem $textItem) 135 { 136 $this->textItem = $textItem; 137 } 138 /** 139 * @return TextItem 140 */ 141 public function getTextItem() 142 { 143 return $this->textItem; 144 } 145 /** 146 * @param string 147 */ 148 public function setTitle($title) 149 { 150 $this->title = $title; 151 } 152 /** 153 * @return string 154 */ 155 public function getTitle() 156 { 157 return $this->title; 158 } 159 /** 160 * @param VideoItem 161 */ 162 public function setVideoItem(VideoItem $videoItem) 163 { 164 $this->videoItem = $videoItem; 165 } 166 /** 167 * @return VideoItem 168 */ 169 public function getVideoItem() 170 { 171 return $this->videoItem; 172 } 173} 174 175// Adding a class alias for backwards compatibility with the previous class name. 176class_alias(Item::class, 'Google_Service_Forms_Item'); 177