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\CloudSearch;
|
---|
19 |
|
---|
20 | class Card extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'sections';
|
---|
23 | protected $cardActionsType = CardAction::class;
|
---|
24 | protected $cardActionsDataType = 'array';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $displayStyle;
|
---|
29 | protected $fixedFooterType = FixedFooter::class;
|
---|
30 | protected $fixedFooterDataType = '';
|
---|
31 | protected $headerType = CardHeader::class;
|
---|
32 | protected $headerDataType = '';
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $name;
|
---|
37 | protected $peekCardHeaderType = CardHeader::class;
|
---|
38 | protected $peekCardHeaderDataType = '';
|
---|
39 | protected $sectionsType = Section::class;
|
---|
40 | protected $sectionsDataType = 'array';
|
---|
41 |
|
---|
42 | /**
|
---|
43 | * @param CardAction[]
|
---|
44 | */
|
---|
45 | public function setCardActions($cardActions)
|
---|
46 | {
|
---|
47 | $this->cardActions = $cardActions;
|
---|
48 | }
|
---|
49 | /**
|
---|
50 | * @return CardAction[]
|
---|
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 FixedFooter
|
---|
72 | */
|
---|
73 | public function setFixedFooter(FixedFooter $fixedFooter)
|
---|
74 | {
|
---|
75 | $this->fixedFooter = $fixedFooter;
|
---|
76 | }
|
---|
77 | /**
|
---|
78 | * @return FixedFooter
|
---|
79 | */
|
---|
80 | public function getFixedFooter()
|
---|
81 | {
|
---|
82 | return $this->fixedFooter;
|
---|
83 | }
|
---|
84 | /**
|
---|
85 | * @param CardHeader
|
---|
86 | */
|
---|
87 | public function setHeader(CardHeader $header)
|
---|
88 | {
|
---|
89 | $this->header = $header;
|
---|
90 | }
|
---|
91 | /**
|
---|
92 | * @return CardHeader
|
---|
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 CardHeader
|
---|
114 | */
|
---|
115 | public function setPeekCardHeader(CardHeader $peekCardHeader)
|
---|
116 | {
|
---|
117 | $this->peekCardHeader = $peekCardHeader;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return CardHeader
|
---|
121 | */
|
---|
122 | public function getPeekCardHeader()
|
---|
123 | {
|
---|
124 | return $this->peekCardHeader;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param Section[]
|
---|
128 | */
|
---|
129 | public function setSections($sections)
|
---|
130 | {
|
---|
131 | $this->sections = $sections;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return Section[]
|
---|
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.
|
---|
143 | class_alias(Card::class, 'Google_Service_CloudSearch_Card');
|
---|