[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\HangoutsChat;
|
---|
| 19 |
|
---|
| 20 | class 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 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $sectionDividerStyle;
|
---|
| 43 | protected $sectionsType = GoogleAppsCardV1Section::class;
|
---|
| 44 | protected $sectionsDataType = 'array';
|
---|
| 45 |
|
---|
| 46 | /**
|
---|
| 47 | * @param GoogleAppsCardV1CardAction[]
|
---|
| 48 | */
|
---|
| 49 | public function setCardActions($cardActions)
|
---|
| 50 | {
|
---|
| 51 | $this->cardActions = $cardActions;
|
---|
| 52 | }
|
---|
| 53 | /**
|
---|
| 54 | * @return GoogleAppsCardV1CardAction[]
|
---|
| 55 | */
|
---|
| 56 | public function getCardActions()
|
---|
| 57 | {
|
---|
| 58 | return $this->cardActions;
|
---|
| 59 | }
|
---|
| 60 | /**
|
---|
| 61 | * @param string
|
---|
| 62 | */
|
---|
| 63 | public function setDisplayStyle($displayStyle)
|
---|
| 64 | {
|
---|
| 65 | $this->displayStyle = $displayStyle;
|
---|
| 66 | }
|
---|
| 67 | /**
|
---|
| 68 | * @return string
|
---|
| 69 | */
|
---|
| 70 | public function getDisplayStyle()
|
---|
| 71 | {
|
---|
| 72 | return $this->displayStyle;
|
---|
| 73 | }
|
---|
| 74 | /**
|
---|
| 75 | * @param GoogleAppsCardV1CardFixedFooter
|
---|
| 76 | */
|
---|
| 77 | public function setFixedFooter(GoogleAppsCardV1CardFixedFooter $fixedFooter)
|
---|
| 78 | {
|
---|
| 79 | $this->fixedFooter = $fixedFooter;
|
---|
| 80 | }
|
---|
| 81 | /**
|
---|
| 82 | * @return GoogleAppsCardV1CardFixedFooter
|
---|
| 83 | */
|
---|
| 84 | public function getFixedFooter()
|
---|
| 85 | {
|
---|
| 86 | return $this->fixedFooter;
|
---|
| 87 | }
|
---|
| 88 | /**
|
---|
| 89 | * @param GoogleAppsCardV1CardHeader
|
---|
| 90 | */
|
---|
| 91 | public function setHeader(GoogleAppsCardV1CardHeader $header)
|
---|
| 92 | {
|
---|
| 93 | $this->header = $header;
|
---|
| 94 | }
|
---|
| 95 | /**
|
---|
| 96 | * @return GoogleAppsCardV1CardHeader
|
---|
| 97 | */
|
---|
| 98 | public function getHeader()
|
---|
| 99 | {
|
---|
| 100 | return $this->header;
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * @param string
|
---|
| 104 | */
|
---|
| 105 | public function setName($name)
|
---|
| 106 | {
|
---|
| 107 | $this->name = $name;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @return string
|
---|
| 111 | */
|
---|
| 112 | public function getName()
|
---|
| 113 | {
|
---|
| 114 | return $this->name;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @param GoogleAppsCardV1CardHeader
|
---|
| 118 | */
|
---|
| 119 | public function setPeekCardHeader(GoogleAppsCardV1CardHeader $peekCardHeader)
|
---|
| 120 | {
|
---|
| 121 | $this->peekCardHeader = $peekCardHeader;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return GoogleAppsCardV1CardHeader
|
---|
| 125 | */
|
---|
| 126 | public function getPeekCardHeader()
|
---|
| 127 | {
|
---|
| 128 | return $this->peekCardHeader;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param string
|
---|
| 132 | */
|
---|
| 133 | public function setSectionDividerStyle($sectionDividerStyle)
|
---|
| 134 | {
|
---|
| 135 | $this->sectionDividerStyle = $sectionDividerStyle;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return string
|
---|
| 139 | */
|
---|
| 140 | public function getSectionDividerStyle()
|
---|
| 141 | {
|
---|
| 142 | return $this->sectionDividerStyle;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param GoogleAppsCardV1Section[]
|
---|
| 146 | */
|
---|
| 147 | public function setSections($sections)
|
---|
| 148 | {
|
---|
| 149 | $this->sections = $sections;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return GoogleAppsCardV1Section[]
|
---|
| 153 | */
|
---|
| 154 | public function getSections()
|
---|
| 155 | {
|
---|
| 156 | return $this->sections;
|
---|
| 157 | }
|
---|
| 158 | }
|
---|
| 159 |
|
---|
| 160 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 161 | class_alias(GoogleAppsCardV1Card::class, 'Google_Service_HangoutsChat_GoogleAppsCardV1Card');
|
---|