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\HangoutsChat; 19 20class GoogleAppsCardV1Card extends \Google\Collection 21{ 22 protected $collection_key = 'sections'; 23 protected $cardActionsType = GoogleAppsCardV1CardAction::class; 24 protected $cardActionsDataType = 'array'; 25 /** 26 * @var string 27 */ 28 public $displayStyle; 29 protected $fixedFooterType = GoogleAppsCardV1CardFixedFooter::class; 30 protected $fixedFooterDataType = ''; 31 protected $headerType = GoogleAppsCardV1CardHeader::class; 32 protected $headerDataType = ''; 33 /** 34 * @var string 35 */ 36 public $name; 37 protected $peekCardHeaderType = GoogleAppsCardV1CardHeader::class; 38 protected $peekCardHeaderDataType = ''; 39 protected $sectionsType = GoogleAppsCardV1Section::class; 40 protected $sectionsDataType = 'array'; 41 42 /** 43 * @param GoogleAppsCardV1CardAction[] 44 */ 45 public function setCardActions($cardActions) 46 { 47 $this->cardActions = $cardActions; 48 } 49 /** 50 * @return GoogleAppsCardV1CardAction[] 51 */ 52 public function getCardActions() 53 { 54 return $this->cardActions; 55 } 56 /** 57 * @param string 58 */ 59 public function setDisplayStyle($displayStyle) 60 { 61 $this->displayStyle = $displayStyle; 62 } 63 /** 64 * @return string 65 */ 66 public function getDisplayStyle() 67 { 68 return $this->displayStyle; 69 } 70 /** 71 * @param GoogleAppsCardV1CardFixedFooter 72 */ 73 public function setFixedFooter(GoogleAppsCardV1CardFixedFooter $fixedFooter) 74 { 75 $this->fixedFooter = $fixedFooter; 76 } 77 /** 78 * @return GoogleAppsCardV1CardFixedFooter 79 */ 80 public function getFixedFooter() 81 { 82 return $this->fixedFooter; 83 } 84 /** 85 * @param GoogleAppsCardV1CardHeader 86 */ 87 public function setHeader(GoogleAppsCardV1CardHeader $header) 88 { 89 $this->header = $header; 90 } 91 /** 92 * @return GoogleAppsCardV1CardHeader 93 */ 94 public function getHeader() 95 { 96 return $this->header; 97 } 98 /** 99 * @param string 100 */ 101 public function setName($name) 102 { 103 $this->name = $name; 104 } 105 /** 106 * @return string 107 */ 108 public function getName() 109 { 110 return $this->name; 111 } 112 /** 113 * @param GoogleAppsCardV1CardHeader 114 */ 115 public function setPeekCardHeader(GoogleAppsCardV1CardHeader $peekCardHeader) 116 { 117 $this->peekCardHeader = $peekCardHeader; 118 } 119 /** 120 * @return GoogleAppsCardV1CardHeader 121 */ 122 public function getPeekCardHeader() 123 { 124 return $this->peekCardHeader; 125 } 126 /** 127 * @param GoogleAppsCardV1Section[] 128 */ 129 public function setSections($sections) 130 { 131 $this->sections = $sections; 132 } 133 /** 134 * @return GoogleAppsCardV1Section[] 135 */ 136 public function getSections() 137 { 138 return $this->sections; 139 } 140} 141 142// Adding a class alias for backwards compatibility with the previous class name. 143class_alias(GoogleAppsCardV1Card::class, 'Google_Service_HangoutsChat_GoogleAppsCardV1Card'); 144