@@ -134,7 +134,7 @@ |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * @param mixed $subbtitle |
|
137 | + * @param mixed $subtitle |
|
138 | 138 | * @return Section Chainable |
139 | 139 | */ |
140 | 140 | public function set_subtitle($subtitle) |
@@ -17,39 +17,39 @@ discard block |
||
17 | 17 | const DEFAULT_TYPE = self::TYPE_CONTENT; |
18 | 18 | |
19 | 19 | /** |
20 | - * @var string $parent_type |
|
21 | - */ |
|
20 | + * @var string $parent_type |
|
21 | + */ |
|
22 | 22 | private $parent_type; |
23 | 23 | |
24 | 24 | /** |
25 | - * @var mixed $parent_id |
|
26 | - */ |
|
25 | + * @var mixed $parent_id |
|
26 | + */ |
|
27 | 27 | private $parent_id; |
28 | 28 | |
29 | 29 | /** |
30 | - * @var string $block_type |
|
31 | - */ |
|
30 | + * @var string $block_type |
|
31 | + */ |
|
32 | 32 | private $block_type = self::DEFAULT_TYPE; |
33 | 33 | |
34 | 34 | /** |
35 | - * @var TranslationString $title |
|
36 | - */ |
|
35 | + * @var TranslationString $title |
|
36 | + */ |
|
37 | 37 | private $title; |
38 | 38 | |
39 | 39 | /** |
40 | - * @var TranslationString $subtitle |
|
41 | - */ |
|
40 | + * @var TranslationString $subtitle |
|
41 | + */ |
|
42 | 42 | private $subtitle; |
43 | 43 | |
44 | 44 | /** |
45 | - * @var TranslationString $content |
|
46 | - */ |
|
45 | + * @var TranslationString $content |
|
46 | + */ |
|
47 | 47 | private $content; |
48 | 48 | |
49 | 49 | /** |
50 | - * @param string $type |
|
51 | - * @return BlockInterface Chainable |
|
52 | - */ |
|
50 | + * @param string $type |
|
51 | + * @return BlockInterface Chainable |
|
52 | + */ |
|
53 | 53 | public function set_parent_type($type) |
54 | 54 | { |
55 | 55 | if (!is_string($type)) { |
@@ -62,17 +62,17 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
65 | - * @return string |
|
66 | - */ |
|
65 | + * @return string |
|
66 | + */ |
|
67 | 67 | public function parent_type() |
68 | 68 | { |
69 | 69 | return $this->parent_type; |
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param mixed $id |
|
74 | - * @return BlockInterface Chainable |
|
75 | - */ |
|
73 | + * @param mixed $id |
|
74 | + * @return BlockInterface Chainable |
|
75 | + */ |
|
76 | 76 | public function set_parent_id($id) |
77 | 77 | { |
78 | 78 | if (!is_scalar($id)) { |
@@ -85,17 +85,17 @@ discard block |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
88 | - * @return mixed |
|
89 | - */ |
|
88 | + * @return mixed |
|
89 | + */ |
|
90 | 90 | public function parent_id() |
91 | 91 | { |
92 | 92 | return $this->parent_id; |
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @param string $type |
|
97 | - * @return Chainable |
|
98 | - */ |
|
96 | + * @param string $type |
|
97 | + * @return Chainable |
|
98 | + */ |
|
99 | 99 | public function set_block_type($type) |
100 | 100 | { |
101 | 101 | if (!is_string($type)) { |
@@ -108,17 +108,17 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * @return string |
|
112 | - */ |
|
111 | + * @return string |
|
112 | + */ |
|
113 | 113 | public function block_type() |
114 | 114 | { |
115 | 115 | return $this->block_type; |
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
119 | - * @param mixed $title |
|
120 | - * @return TranslationString |
|
121 | - */ |
|
119 | + * @param mixed $title |
|
120 | + * @return TranslationString |
|
121 | + */ |
|
122 | 122 | public function set_title($title) |
123 | 123 | { |
124 | 124 | $this->title = new TranslationString($title); |
@@ -126,17 +126,17 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
129 | - * @return TranslationString |
|
130 | - */ |
|
129 | + * @return TranslationString |
|
130 | + */ |
|
131 | 131 | public function title() |
132 | 132 | { |
133 | 133 | return $this->title; |
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * @param mixed $subbtitle |
|
138 | - * @return Section Chainable |
|
139 | - */ |
|
137 | + * @param mixed $subbtitle |
|
138 | + * @return Section Chainable |
|
139 | + */ |
|
140 | 140 | public function set_subtitle($subtitle) |
141 | 141 | { |
142 | 142 | $this->subtitle = new TranslationString($subtitle); |
@@ -144,17 +144,17 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * @return TranslationString |
|
148 | - */ |
|
147 | + * @return TranslationString |
|
148 | + */ |
|
149 | 149 | public function subtitle() |
150 | 150 | { |
151 | 151 | return $this->subtitle; |
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
155 | - * @param mixed $content |
|
156 | - * @return Section Chainable |
|
157 | - */ |
|
155 | + * @param mixed $content |
|
156 | + * @return Section Chainable |
|
157 | + */ |
|
158 | 158 | public function set_content($content) |
159 | 159 | { |
160 | 160 | $this->content = new TranslationString($content); |
@@ -162,8 +162,8 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @return TranslationString |
|
166 | - */ |
|
165 | + * @return TranslationString |
|
166 | + */ |
|
167 | 167 | public function content() |
168 | 168 | { |
169 | 169 | return $this->content; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | /** |
122 | 122 | * @param mixed $title |
123 | - * @return TranslationString |
|
123 | + * @return AbstractSection |
|
124 | 124 | */ |
125 | 125 | public function set_title($title) |
126 | 126 | { |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
140 | - * @param mixed $subbtitle |
|
141 | - * @return Section Chainable |
|
140 | + * @param mixed $subtitle |
|
141 | + * @return AbstractSection Chainable |
|
142 | 142 | */ |
143 | 143 | public function set_subtitle($subtitle) |
144 | 144 | { |
@@ -60,38 +60,38 @@ discard block |
||
60 | 60 | const DEFAULT_TYPE = self::TYPE_CONTENT; |
61 | 61 | |
62 | 62 | /** |
63 | - * @var string $section_type |
|
64 | - */ |
|
63 | + * @var string $section_type |
|
64 | + */ |
|
65 | 65 | private $section_type = self::DEFAULT_TYPE; |
66 | 66 | |
67 | 67 | /** |
68 | - * @var TranslationString $title |
|
69 | - */ |
|
68 | + * @var TranslationString $title |
|
69 | + */ |
|
70 | 70 | private $title; |
71 | 71 | /** |
72 | - * @var TranslationString $subtitle |
|
73 | - */ |
|
72 | + * @var TranslationString $subtitle |
|
73 | + */ |
|
74 | 74 | private $subtitle; |
75 | 75 | /** |
76 | - * @var TranslationString $content |
|
77 | - */ |
|
76 | + * @var TranslationString $content |
|
77 | + */ |
|
78 | 78 | private $content; |
79 | 79 | |
80 | 80 | /** |
81 | - * @var mixed $template |
|
82 | - */ |
|
81 | + * @var mixed $template |
|
82 | + */ |
|
83 | 83 | private $template; |
84 | 84 | /** |
85 | - * @var array $template_options |
|
86 | - */ |
|
85 | + * @var array $template_options |
|
86 | + */ |
|
87 | 87 | private $template_options = []; |
88 | 88 | |
89 | 89 | |
90 | 90 | /** |
91 | - * @param string $section_type |
|
92 | - * @throws InvalidArgumentException If the section type is not a string or not a valid section type. |
|
93 | - * @return SectionInterface Chainable |
|
94 | - */ |
|
91 | + * @param string $section_type |
|
92 | + * @throws InvalidArgumentException If the section type is not a string or not a valid section type. |
|
93 | + * @return SectionInterface Chainable |
|
94 | + */ |
|
95 | 95 | public function set_section_type($section_type) |
96 | 96 | { |
97 | 97 | if (!is_string($section_type)) { |
@@ -111,17 +111,17 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @return string |
|
115 | - */ |
|
114 | + * @return string |
|
115 | + */ |
|
116 | 116 | public function section_type() |
117 | 117 | { |
118 | 118 | return $this->section_type; |
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
122 | - * @param mixed $title |
|
123 | - * @return TranslationString |
|
124 | - */ |
|
122 | + * @param mixed $title |
|
123 | + * @return TranslationString |
|
124 | + */ |
|
125 | 125 | public function set_title($title) |
126 | 126 | { |
127 | 127 | $this->title = new TranslationString($title); |
@@ -129,17 +129,17 @@ discard block |
||
129 | 129 | } |
130 | 130 | |
131 | 131 | /** |
132 | - * @return TranslationString |
|
133 | - */ |
|
132 | + * @return TranslationString |
|
133 | + */ |
|
134 | 134 | public function title() |
135 | 135 | { |
136 | 136 | return $this->title; |
137 | 137 | } |
138 | 138 | |
139 | 139 | /** |
140 | - * @param mixed $subbtitle |
|
141 | - * @return Section Chainable |
|
142 | - */ |
|
140 | + * @param mixed $subbtitle |
|
141 | + * @return Section Chainable |
|
142 | + */ |
|
143 | 143 | public function set_subtitle($subtitle) |
144 | 144 | { |
145 | 145 | $this->subtitle = new TranslationString($subtitle); |
@@ -147,17 +147,17 @@ discard block |
||
147 | 147 | } |
148 | 148 | |
149 | 149 | /** |
150 | - * @return TranslationString |
|
151 | - */ |
|
150 | + * @return TranslationString |
|
151 | + */ |
|
152 | 152 | public function subtitle() |
153 | 153 | { |
154 | 154 | return $this->subtitle; |
155 | 155 | } |
156 | 156 | |
157 | 157 | /** |
158 | - * @param mixed $template |
|
159 | - * @return SectionInterface Chainable |
|
160 | - */ |
|
158 | + * @param mixed $template |
|
159 | + * @return SectionInterface Chainable |
|
160 | + */ |
|
161 | 161 | public function set_template($template) |
162 | 162 | { |
163 | 163 | $this->template = $template; |
@@ -165,17 +165,17 @@ discard block |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
168 | - * @return mixed |
|
169 | - */ |
|
168 | + * @return mixed |
|
169 | + */ |
|
170 | 170 | public function template() |
171 | 171 | { |
172 | 172 | return $this->template; |
173 | 173 | } |
174 | 174 | |
175 | 175 | /** |
176 | - * @param array $template_options |
|
177 | - * @return SectionInterface Chainable |
|
178 | - */ |
|
176 | + * @param array $template_options |
|
177 | + * @return SectionInterface Chainable |
|
178 | + */ |
|
179 | 179 | public function set_template_options(array $template_options) |
180 | 180 | { |
181 | 181 | $this->template_options = $template_options; |
@@ -183,18 +183,18 @@ discard block |
||
183 | 183 | } |
184 | 184 | |
185 | 185 | /** |
186 | - * @return array |
|
187 | - */ |
|
186 | + * @return array |
|
187 | + */ |
|
188 | 188 | public function template_options() |
189 | 189 | { |
190 | 190 | return $this->template_options; |
191 | 191 | } |
192 | 192 | |
193 | 193 | /** |
194 | - * HierarchicalTrait > load_children |
|
195 | - * |
|
196 | - * @return array |
|
197 | - */ |
|
194 | + * HierarchicalTrait > load_children |
|
195 | + * |
|
196 | + * @return array |
|
197 | + */ |
|
198 | 198 | public function load_children() |
199 | 199 | { |
200 | 200 | $source = clone($this->source()); |
@@ -220,11 +220,11 @@ discard block |
||
220 | 220 | } |
221 | 221 | |
222 | 222 | /** |
223 | - * MetatagTrait > canonical_url |
|
224 | - * |
|
225 | - * @return string |
|
226 | - * @todo |
|
227 | - */ |
|
223 | + * MetatagTrait > canonical_url |
|
224 | + * |
|
225 | + * @return string |
|
226 | + * @todo |
|
227 | + */ |
|
228 | 228 | public function canonical_url() |
229 | 229 | { |
230 | 230 | return ''; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | /** |
91 | 91 | * @param mixed $title |
92 | - * @return TranslationString |
|
92 | + * @return Event |
|
93 | 93 | */ |
94 | 94 | public function set_title($title) |
95 | 95 | { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
109 | - * @param mixed $subbtitle |
|
109 | + * @param mixed $subtitle |
|
110 | 110 | * @return Event Chainable |
111 | 111 | */ |
112 | 112 | public function set_subtitle($subtitle) |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
192 | - * @return DateTime|null |
|
192 | + * @return DateTime |
|
193 | 193 | */ |
194 | 194 | public function start_date() |
195 | 195 | { |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | } |
226 | 226 | |
227 | 227 | /** |
228 | - * @return DateTime|null |
|
228 | + * @return DateTime |
|
229 | 229 | */ |
230 | 230 | public function end_date() |
231 | 231 | { |
@@ -35,62 +35,62 @@ discard block |
||
35 | 35 | use SearchableTrait; |
36 | 36 | |
37 | 37 | /** |
38 | - * @var TranslationString $title |
|
39 | - */ |
|
38 | + * @var TranslationString $title |
|
39 | + */ |
|
40 | 40 | private $title; |
41 | 41 | |
42 | 42 | /** |
43 | - * @var TranslationString $title |
|
44 | - */ |
|
43 | + * @var TranslationString $title |
|
44 | + */ |
|
45 | 45 | private $subtitle; |
46 | 46 | |
47 | 47 | /** |
48 | - * @var TranslationString $content |
|
49 | - */ |
|
48 | + * @var TranslationString $content |
|
49 | + */ |
|
50 | 50 | private $content; |
51 | 51 | |
52 | 52 | /** |
53 | - * @var Collection $blocks |
|
54 | - */ |
|
53 | + * @var Collection $blocks |
|
54 | + */ |
|
55 | 55 | private $blocks; |
56 | 56 | |
57 | 57 | /** |
58 | - * @var DateTime $start_date |
|
59 | - */ |
|
58 | + * @var DateTime $start_date |
|
59 | + */ |
|
60 | 60 | private $start_date; |
61 | 61 | /** |
62 | - * @var DateTime $start_date |
|
63 | - */ |
|
62 | + * @var DateTime $start_date |
|
63 | + */ |
|
64 | 64 | private $end_date; |
65 | 65 | |
66 | 66 | /** |
67 | - * @var TranslationString $thumbnail |
|
68 | - */ |
|
67 | + * @var TranslationString $thumbnail |
|
68 | + */ |
|
69 | 69 | private $thumbnail; |
70 | 70 | /** |
71 | - * @var TranslationString $image |
|
72 | - */ |
|
71 | + * @var TranslationString $image |
|
72 | + */ |
|
73 | 73 | private $image; |
74 | 74 | |
75 | 75 | /** |
76 | - * @var Collection $documents |
|
77 | - */ |
|
76 | + * @var Collection $documents |
|
77 | + */ |
|
78 | 78 | private $documents; |
79 | 79 | |
80 | 80 | /** |
81 | - * CategorizableTrait > category_type() |
|
82 | - * |
|
83 | - * @return string |
|
84 | - */ |
|
81 | + * CategorizableTrait > category_type() |
|
82 | + * |
|
83 | + * @return string |
|
84 | + */ |
|
85 | 85 | public function category_type() |
86 | 86 | { |
87 | 87 | return 'charcoal/cms/event-category'; |
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
91 | - * @param mixed $title |
|
92 | - * @return TranslationString |
|
93 | - */ |
|
91 | + * @param mixed $title |
|
92 | + * @return TranslationString |
|
93 | + */ |
|
94 | 94 | public function set_title($title) |
95 | 95 | { |
96 | 96 | $this->title = new TranslationString($title); |
@@ -98,17 +98,17 @@ discard block |
||
98 | 98 | } |
99 | 99 | |
100 | 100 | /** |
101 | - * @return TranslationString |
|
102 | - */ |
|
101 | + * @return TranslationString |
|
102 | + */ |
|
103 | 103 | public function title() |
104 | 104 | { |
105 | 105 | return $this->title; |
106 | 106 | } |
107 | 107 | |
108 | 108 | /** |
109 | - * @param mixed $subbtitle |
|
110 | - * @return Event Chainable |
|
111 | - */ |
|
109 | + * @param mixed $subbtitle |
|
110 | + * @return Event Chainable |
|
111 | + */ |
|
112 | 112 | public function set_subtitle($subtitle) |
113 | 113 | { |
114 | 114 | $this->subtitle = new TranslationString($subtitle); |
@@ -116,17 +116,17 @@ discard block |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
119 | - * @return TranslationString |
|
120 | - */ |
|
119 | + * @return TranslationString |
|
120 | + */ |
|
121 | 121 | public function subtitle() |
122 | 122 | { |
123 | 123 | return $this->subtitle; |
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | - * @param mixed $content |
|
128 | - * @return Event Chainable |
|
129 | - */ |
|
127 | + * @param mixed $content |
|
128 | + * @return Event Chainable |
|
129 | + */ |
|
130 | 130 | public function set_content($content) |
131 | 131 | { |
132 | 132 | $this->content = new TranslationString($content); |
@@ -134,16 +134,16 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * @return TranslationString |
|
138 | - */ |
|
137 | + * @return TranslationString |
|
138 | + */ |
|
139 | 139 | public function content() |
140 | 140 | { |
141 | 141 | return $this->content; |
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * @return Collection |
|
146 | - */ |
|
145 | + * @return Collection |
|
146 | + */ |
|
147 | 147 | public function blocks() |
148 | 148 | { |
149 | 149 | if ($this->blocks === null) { |
@@ -153,17 +153,17 @@ discard block |
||
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
156 | - * @return Collection |
|
157 | - */ |
|
156 | + * @return Collection |
|
157 | + */ |
|
158 | 158 | public function load_blocks() |
159 | 159 | { |
160 | 160 | // @todo |
161 | 161 | } |
162 | 162 | |
163 | 163 | /** |
164 | - * @param string|DateTime $start_date |
|
165 | - * @throws InvalidArgumentException |
|
166 | - */ |
|
164 | + * @param string|DateTime $start_date |
|
165 | + * @throws InvalidArgumentException |
|
166 | + */ |
|
167 | 167 | public function set_start_date($start_date) |
168 | 168 | { |
169 | 169 | if ($start_date === null) { |
@@ -189,17 +189,17 @@ discard block |
||
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
192 | - * @return DateTime|null |
|
193 | - */ |
|
192 | + * @return DateTime|null |
|
193 | + */ |
|
194 | 194 | public function start_date() |
195 | 195 | { |
196 | 196 | return $this->start_date; |
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
200 | - * @param string|DateTime $end_date |
|
201 | - * @throws InvalidArgumentException |
|
202 | - */ |
|
200 | + * @param string|DateTime $end_date |
|
201 | + * @throws InvalidArgumentException |
|
202 | + */ |
|
203 | 203 | public function set_end_date($end_date) |
204 | 204 | { |
205 | 205 | if ($end_date === null) { |
@@ -225,19 +225,19 @@ discard block |
||
225 | 225 | } |
226 | 226 | |
227 | 227 | /** |
228 | - * @return DateTime|null |
|
229 | - */ |
|
228 | + * @return DateTime|null |
|
229 | + */ |
|
230 | 230 | public function end_date() |
231 | 231 | { |
232 | 232 | return $this->end_date; |
233 | 233 | } |
234 | 234 | |
235 | 235 | /** |
236 | - * MetatagTrait > canonical_url |
|
237 | - * |
|
238 | - * @return string |
|
239 | - * @todo |
|
240 | - */ |
|
236 | + * MetatagTrait > canonical_url |
|
237 | + * |
|
238 | + * @return string |
|
239 | + * @todo |
|
240 | + */ |
|
241 | 241 | public function canonical_url() |
242 | 242 | { |
243 | 243 | return ''; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @return TranslationString|null |
|
54 | + * @return TranslationString |
|
55 | 55 | */ |
56 | 56 | public function question() |
57 | 57 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @return TranslationString|null |
|
72 | + * @return TranslationString |
|
73 | 73 | */ |
74 | 74 | public function answer() |
75 | 75 | { |
@@ -30,20 +30,20 @@ discard block |
||
30 | 30 | use SearchableTrait; |
31 | 31 | |
32 | 32 | /** |
33 | - * The question, or "title", of this entry |
|
34 | - * @var TranslationString $question |
|
35 | - */ |
|
33 | + * The question, or "title", of this entry |
|
34 | + * @var TranslationString $question |
|
35 | + */ |
|
36 | 36 | private $question; |
37 | 37 | |
38 | 38 | /** |
39 | - * @var TranslationString $answer |
|
40 | - */ |
|
39 | + * @var TranslationString $answer |
|
40 | + */ |
|
41 | 41 | private $answer; |
42 | 42 | |
43 | 43 | /** |
44 | - * @param mixed $question |
|
45 | - * @return Faq Chainable |
|
46 | - */ |
|
44 | + * @param mixed $question |
|
45 | + * @return Faq Chainable |
|
46 | + */ |
|
47 | 47 | public function set_question($question) |
48 | 48 | { |
49 | 49 | $this->question = new TranslationString($question); |
@@ -51,17 +51,17 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @return TranslationString|null |
|
55 | - */ |
|
54 | + * @return TranslationString|null |
|
55 | + */ |
|
56 | 56 | public function question() |
57 | 57 | { |
58 | 58 | return $this->question; |
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @param mixed answer |
|
63 | - * @return Faq Chainable |
|
64 | - */ |
|
62 | + * @param mixed answer |
|
63 | + * @return Faq Chainable |
|
64 | + */ |
|
65 | 65 | public function set_answer($answer) |
66 | 66 | { |
67 | 67 | $this->answer = new TranslationString($answer); |
@@ -69,18 +69,18 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @return TranslationString|null |
|
73 | - */ |
|
72 | + * @return TranslationString|null |
|
73 | + */ |
|
74 | 74 | public function answer() |
75 | 75 | { |
76 | 76 | return $this->answer; |
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
80 | - * CategorizableTrait > category_type() |
|
81 | - * |
|
82 | - * @return string |
|
83 | - */ |
|
80 | + * CategorizableTrait > category_type() |
|
81 | + * |
|
82 | + * @return string |
|
83 | + */ |
|
84 | 84 | public function category_type() |
85 | 85 | { |
86 | 86 | return 'charcoal/cms/faq-category'; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | public function set_searchable_data(array $data); |
15 | 15 | |
16 | 16 | /** |
17 | - * @param array $_search_properties |
|
17 | + * @param array $properties |
|
18 | 18 | * @return SearchableInterface Chainable |
19 | 19 | */ |
20 | 20 | public function set_search_properties(array $properties); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | public function set_search_keywords($keywords); |
32 | 32 | |
33 | 33 | /** |
34 | - * @return TranslationString |
|
34 | + * @return \Charcoal\Translation\TranslationString |
|
35 | 35 | */ |
36 | 36 | public function search_keywords(); |
37 | 37 | } |
@@ -8,30 +8,30 @@ |
||
8 | 8 | interface SearchableInterface |
9 | 9 | { |
10 | 10 | /** |
11 | - * @param array $data |
|
12 | - * @return SearchableInterface Chainable |
|
13 | - */ |
|
11 | + * @param array $data |
|
12 | + * @return SearchableInterface Chainable |
|
13 | + */ |
|
14 | 14 | public function set_searchable_data(array $data); |
15 | 15 | |
16 | 16 | /** |
17 | - * @param array $_search_properties |
|
18 | - * @return SearchableInterface Chainable |
|
19 | - */ |
|
17 | + * @param array $_search_properties |
|
18 | + * @return SearchableInterface Chainable |
|
19 | + */ |
|
20 | 20 | public function set_search_properties(array $properties); |
21 | 21 | |
22 | 22 | /** |
23 | - * @return array |
|
24 | - */ |
|
23 | + * @return array |
|
24 | + */ |
|
25 | 25 | public function search_properties(); |
26 | 26 | |
27 | 27 | /** |
28 | - * @param mixed $keywords |
|
29 | - * @return SearchableInterface Chainable |
|
30 | - */ |
|
28 | + * @param mixed $keywords |
|
29 | + * @return SearchableInterface Chainable |
|
30 | + */ |
|
31 | 31 | public function set_search_keywords($keywords); |
32 | 32 | |
33 | 33 | /** |
34 | - * @return TranslationString |
|
35 | - */ |
|
34 | + * @return TranslationString |
|
35 | + */ |
|
36 | 36 | public function search_keywords(); |
37 | 37 | } |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * @param array $search_properties |
|
38 | - * @return SearchableInterface Chainable |
|
37 | + * @param array $properties |
|
38 | + * @return SearchableTrait Chainable |
|
39 | 39 | */ |
40 | 40 | public function set_search_properties(array $properties) |
41 | 41 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | |
54 | 54 | /** |
55 | 55 | * @param mixed $keywords |
56 | - * @return SearchableInterface Chainable |
|
56 | + * @return SearchableTrait Chainable |
|
57 | 57 | */ |
58 | 58 | public function set_search_keywords($keywords) |
59 | 59 | { |
@@ -10,18 +10,18 @@ discard block |
||
10 | 10 | trait SearchableTrait |
11 | 11 | { |
12 | 12 | /** |
13 | - * @var array $search_properties |
|
14 | - */ |
|
13 | + * @var array $search_properties |
|
14 | + */ |
|
15 | 15 | private $search_properties = []; |
16 | 16 | |
17 | 17 | /** |
18 | - * @var TranslationString $search_keywords |
|
19 | - */ |
|
18 | + * @var TranslationString $search_keywords |
|
19 | + */ |
|
20 | 20 | private $search_keywords; |
21 | 21 | |
22 | 22 | /** |
23 | - * @param array $data; |
|
24 | - */ |
|
23 | + * @param array $data; |
|
24 | + */ |
|
25 | 25 | public function set_searchable_data(array $data) |
26 | 26 | { |
27 | 27 | if (isset($data['search_properties']) && $data['search_properties'] !== null) { |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * @param array $search_properties |
|
38 | - * @return SearchableInterface Chainable |
|
39 | - */ |
|
37 | + * @param array $search_properties |
|
38 | + * @return SearchableInterface Chainable |
|
39 | + */ |
|
40 | 40 | public function set_search_properties(array $properties) |
41 | 41 | { |
42 | 42 | $this->search_properties = $properties; |
@@ -44,17 +44,17 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @return array |
|
48 | - */ |
|
47 | + * @return array |
|
48 | + */ |
|
49 | 49 | public function search_properties() |
50 | 50 | { |
51 | 51 | return $this->search_properties; |
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @param mixed $keywords |
|
56 | - * @return SearchableInterface Chainable |
|
57 | - */ |
|
55 | + * @param mixed $keywords |
|
56 | + * @return SearchableInterface Chainable |
|
57 | + */ |
|
58 | 58 | public function set_search_keywords($keywords) |
59 | 59 | { |
60 | 60 | $this->search_keywords = new TranslationString($keywords); |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
65 | - * @return TranslationString |
|
66 | - */ |
|
65 | + * @return TranslationString |
|
66 | + */ |
|
67 | 67 | public function search_keywords() |
68 | 68 | { |
69 | 69 | return $this->search_keywords; |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | /** |
19 | 19 | * @param mixed $content |
20 | - * @return Section Chainable |
|
20 | + * @return ContentSection Chainable |
|
21 | 21 | */ |
22 | 22 | public function set_content($content) |
23 | 23 | { |
@@ -8,17 +8,17 @@ discard block |
||
8 | 8 | class ContentSection extends AbstractSection |
9 | 9 | { |
10 | 10 | /** |
11 | - * @return string |
|
12 | - */ |
|
11 | + * @return string |
|
12 | + */ |
|
13 | 13 | public function section_type() |
14 | 14 | { |
15 | 15 | return AbstractSection::TYPE_CONTENT; |
16 | 16 | } |
17 | 17 | |
18 | 18 | /** |
19 | - * @param mixed $content |
|
20 | - * @return Section Chainable |
|
21 | - */ |
|
19 | + * @param mixed $content |
|
20 | + * @return Section Chainable |
|
21 | + */ |
|
22 | 22 | public function set_content($content) |
23 | 23 | { |
24 | 24 | $this->content = new TranslationString($content); |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * @return TranslationString |
|
30 | - */ |
|
29 | + * @return TranslationString |
|
30 | + */ |
|
31 | 31 | public function content() |
32 | 32 | { |
33 | 33 | return $this->content; |
@@ -14,32 +14,32 @@ discard block |
||
14 | 14 | class Template extends Content implements TemplateInterface |
15 | 15 | { |
16 | 16 | /** |
17 | - * @var string $ident |
|
18 | - */ |
|
17 | + * @var string $ident |
|
18 | + */ |
|
19 | 19 | private $ident; |
20 | 20 | /** |
21 | - * @var TranslationString $title |
|
22 | - */ |
|
21 | + * @var TranslationString $title |
|
22 | + */ |
|
23 | 23 | private $title; |
24 | 24 | /** |
25 | - * @var array $options |
|
26 | - */ |
|
25 | + * @var array $options |
|
26 | + */ |
|
27 | 27 | private $options; |
28 | 28 | |
29 | 29 | /** |
30 | - * IndexableInterface > key() |
|
31 | - * |
|
32 | - * @return string |
|
33 | - */ |
|
30 | + * IndexableInterface > key() |
|
31 | + * |
|
32 | + * @return string |
|
33 | + */ |
|
34 | 34 | public function key() |
35 | 35 | { |
36 | 36 | return 'ident'; |
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * @param string $ident |
|
41 | - * @return TemplateInterface Chainable |
|
42 | - */ |
|
40 | + * @param string $ident |
|
41 | + * @return TemplateInterface Chainable |
|
42 | + */ |
|
43 | 43 | public function set_ident($ident) |
44 | 44 | { |
45 | 45 | if (!is_string($ident)) { |
@@ -52,17 +52,17 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @return string |
|
56 | - */ |
|
55 | + * @return string |
|
56 | + */ |
|
57 | 57 | public function ident() |
58 | 58 | { |
59 | 59 | return $this->ident; |
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
63 | - * @param mixed $title |
|
64 | - * @return TemplateInterface Chainable |
|
65 | - */ |
|
63 | + * @param mixed $title |
|
64 | + * @return TemplateInterface Chainable |
|
65 | + */ |
|
66 | 66 | public function set_title($title) |
67 | 67 | { |
68 | 68 | $this->title = new TranslationString($title); |
@@ -70,17 +70,17 @@ discard block |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @return TranslationString |
|
74 | - */ |
|
73 | + * @return TranslationString |
|
74 | + */ |
|
75 | 75 | public function title() |
76 | 76 | { |
77 | 77 | return $this->title; |
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * @param array $options |
|
82 | - * @return TemplateInterface Chainable |
|
83 | - */ |
|
81 | + * @param array $options |
|
82 | + * @return TemplateInterface Chainable |
|
83 | + */ |
|
84 | 84 | public function set_options($options) |
85 | 85 | { |
86 | 86 | $this->options = $options; |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
91 | - * @return array |
|
92 | - */ |
|
91 | + * @return array |
|
92 | + */ |
|
93 | 93 | public function options() |
94 | 94 | { |
95 | 95 | return $this->options; |
@@ -8,68 +8,68 @@ |
||
8 | 8 | interface BlockInterface |
9 | 9 | { |
10 | 10 | /** |
11 | - * @param string $type |
|
12 | - * @return BlockInterface Chainable |
|
13 | - */ |
|
11 | + * @param string $type |
|
12 | + * @return BlockInterface Chainable |
|
13 | + */ |
|
14 | 14 | public function set_parent_type($type); |
15 | 15 | |
16 | 16 | /** |
17 | - * @return string |
|
18 | - */ |
|
17 | + * @return string |
|
18 | + */ |
|
19 | 19 | public function parent_type(); |
20 | 20 | |
21 | 21 | /** |
22 | - * @param mixed $id |
|
23 | - * @return BlockInterface Chainable |
|
24 | - */ |
|
22 | + * @param mixed $id |
|
23 | + * @return BlockInterface Chainable |
|
24 | + */ |
|
25 | 25 | public function set_parent_id($id); |
26 | 26 | |
27 | 27 | /** |
28 | - * @return mixed |
|
29 | - */ |
|
28 | + * @return mixed |
|
29 | + */ |
|
30 | 30 | public function parent_id(); |
31 | 31 | |
32 | 32 | /** |
33 | - * @param string $type |
|
34 | - * @return Chainable |
|
35 | - */ |
|
33 | + * @param string $type |
|
34 | + * @return Chainable |
|
35 | + */ |
|
36 | 36 | public function set_block_type($type); |
37 | 37 | |
38 | 38 | /** |
39 | - * @return string |
|
40 | - */ |
|
39 | + * @return string |
|
40 | + */ |
|
41 | 41 | public function block_type(); |
42 | 42 | |
43 | 43 | /** |
44 | - * @param mixed $title |
|
45 | - * @return SectionInterface Chainable |
|
46 | - */ |
|
44 | + * @param mixed $title |
|
45 | + * @return SectionInterface Chainable |
|
46 | + */ |
|
47 | 47 | public function set_title($title); |
48 | 48 | |
49 | 49 | /** |
50 | - * @return TranslationString |
|
51 | - */ |
|
50 | + * @return TranslationString |
|
51 | + */ |
|
52 | 52 | public function title(); |
53 | 53 | |
54 | 54 | /** |
55 | - * @param mixed $subtitle |
|
56 | - * @return SectionInterface Chainable |
|
57 | - */ |
|
55 | + * @param mixed $subtitle |
|
56 | + * @return SectionInterface Chainable |
|
57 | + */ |
|
58 | 58 | public function set_subtitle($subtitle); |
59 | 59 | |
60 | 60 | /** |
61 | - * @return TranslationString |
|
62 | - */ |
|
61 | + * @return TranslationString |
|
62 | + */ |
|
63 | 63 | public function subtitle(); |
64 | 64 | |
65 | 65 | /** |
66 | - * @param mixed $content |
|
67 | - * @return SectionInterface Chainable |
|
68 | - */ |
|
66 | + * @param mixed $content |
|
67 | + * @return SectionInterface Chainable |
|
68 | + */ |
|
69 | 69 | public function set_content($content); |
70 | 70 | |
71 | 71 | /** |
72 | - * @return TranslationString |
|
73 | - */ |
|
72 | + * @return TranslationString |
|
73 | + */ |
|
74 | 74 | public function content(); |
75 | 75 | } |