@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | /** |
97 | 97 | * @param mixed $title |
98 | - * @return TranslationString |
|
98 | + * @return News |
|
99 | 99 | */ |
100 | 100 | public function setTitle($title) |
101 | 101 | { |
@@ -112,8 +112,8 @@ discard block |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
115 | - * @param mixed $subbtitle |
|
116 | - * @return Event Chainable |
|
115 | + * @param mixed $subtitle |
|
116 | + * @return News Chainable |
|
117 | 117 | */ |
118 | 118 | public function setSubtitle($subtitle) |
119 | 119 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | /** |
133 | 133 | * @param mixed $content |
134 | - * @return Event Chainable |
|
134 | + * @return News Chainable |
|
135 | 135 | */ |
136 | 136 | public function setContent($content) |
137 | 137 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | /** |
151 | 151 | * @param mixed $newsDate The news date. |
152 | 152 | * @throws InvalidArgumentException If the timestamp is invalid. |
153 | - * @return ObjectRevision Chainable |
|
153 | + * @return News Chainable |
|
154 | 154 | */ |
155 | 155 | public function setNewsDate($newsDate) |
156 | 156 | { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
174 | - * @return DateTime|null |
|
174 | + * @return DateTime |
|
175 | 175 | */ |
176 | 176 | public function newsDate() |
177 | 177 | { |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * @param RequestInterface $request |
208 | 208 | * @param ResponseInterface $response |
209 | 209 | * @throws InvalidArgumentException |
210 | - * @return callable|null Route dispatcher |
|
210 | + * @return \Closure|null Route dispatcher |
|
211 | 211 | */ |
212 | 212 | public function routeHandler($path, RequestInterface $request, ResponseInterface $response) |
213 | 213 | { |
@@ -44,59 +44,59 @@ discard block |
||
44 | 44 | use SearchableTrait; |
45 | 45 | |
46 | 46 | /** |
47 | - * @var TranslationString $title |
|
48 | - */ |
|
47 | + * @var TranslationString $title |
|
48 | + */ |
|
49 | 49 | private $title; |
50 | 50 | |
51 | 51 | /** |
52 | - * @var TranslationString $title |
|
53 | - */ |
|
52 | + * @var TranslationString $title |
|
53 | + */ |
|
54 | 54 | private $subtitle; |
55 | 55 | |
56 | 56 | /** |
57 | - * @var TranslationString $content |
|
58 | - */ |
|
57 | + * @var TranslationString $content |
|
58 | + */ |
|
59 | 59 | private $content; |
60 | 60 | |
61 | 61 | /** |
62 | - * @var array $contentStructure |
|
63 | - */ |
|
62 | + * @var array $contentStructure |
|
63 | + */ |
|
64 | 64 | private $contentStructure; |
65 | 65 | |
66 | 66 | /** |
67 | - * @var DateTime $newsDate |
|
68 | - */ |
|
67 | + * @var DateTime $newsDate |
|
68 | + */ |
|
69 | 69 | private $newsDate; |
70 | 70 | |
71 | 71 | /** |
72 | - * @var TranslationString $image |
|
73 | - */ |
|
72 | + * @var TranslationString $image |
|
73 | + */ |
|
74 | 74 | private $image; |
75 | 75 | |
76 | 76 | /** |
77 | - * @var Collection $documents |
|
78 | - */ |
|
77 | + * @var Collection $documents |
|
78 | + */ |
|
79 | 79 | public $documents; |
80 | 80 | |
81 | 81 | /** |
82 | - * @var TranslationString $infoUrl |
|
83 | - */ |
|
82 | + * @var TranslationString $infoUrl |
|
83 | + */ |
|
84 | 84 | private $infoUrl; |
85 | 85 | |
86 | 86 | /** |
87 | - * CategorizableTrait > categoryType() |
|
88 | - * |
|
89 | - * @return string |
|
90 | - */ |
|
87 | + * CategorizableTrait > categoryType() |
|
88 | + * |
|
89 | + * @return string |
|
90 | + */ |
|
91 | 91 | public function categoryType() |
92 | 92 | { |
93 | 93 | return 'charcoal/cms/news-category'; |
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @param mixed $title |
|
98 | - * @return TranslationString |
|
99 | - */ |
|
97 | + * @param mixed $title |
|
98 | + * @return TranslationString |
|
99 | + */ |
|
100 | 100 | public function setTitle($title) |
101 | 101 | { |
102 | 102 | $this->title = new TranslationString($title); |
@@ -104,17 +104,17 @@ discard block |
||
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
107 | - * @return TranslationString |
|
108 | - */ |
|
107 | + * @return TranslationString |
|
108 | + */ |
|
109 | 109 | public function title() |
110 | 110 | { |
111 | 111 | return $this->title; |
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
115 | - * @param mixed $subbtitle |
|
116 | - * @return Event Chainable |
|
117 | - */ |
|
115 | + * @param mixed $subbtitle |
|
116 | + * @return Event Chainable |
|
117 | + */ |
|
118 | 118 | public function setSubtitle($subtitle) |
119 | 119 | { |
120 | 120 | $this->subtitle = new TranslationString($subtitle); |
@@ -122,17 +122,17 @@ discard block |
||
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
125 | - * @return TranslationString |
|
126 | - */ |
|
125 | + * @return TranslationString |
|
126 | + */ |
|
127 | 127 | public function subtitle() |
128 | 128 | { |
129 | 129 | return $this->subtitle; |
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
133 | - * @param mixed $content |
|
134 | - * @return Event Chainable |
|
135 | - */ |
|
133 | + * @param mixed $content |
|
134 | + * @return Event Chainable |
|
135 | + */ |
|
136 | 136 | public function setContent($content) |
137 | 137 | { |
138 | 138 | $this->content = new TranslationString($content); |
@@ -140,8 +140,8 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @return TranslationString |
|
144 | - */ |
|
143 | + * @return TranslationString |
|
144 | + */ |
|
145 | 145 | public function content() |
146 | 146 | { |
147 | 147 | return $this->content; |
@@ -190,25 +190,25 @@ discard block |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
193 | - * MetatagTrait > canonical_url |
|
194 | - * |
|
195 | - * @return string |
|
196 | - * @todo |
|
197 | - */ |
|
193 | + * MetatagTrait > canonical_url |
|
194 | + * |
|
195 | + * @return string |
|
196 | + * @todo |
|
197 | + */ |
|
198 | 198 | public function canonicalUrl() |
199 | 199 | { |
200 | 200 | return ''; |
201 | 201 | } |
202 | 202 | |
203 | 203 | /** |
204 | - * RoutableInterface > handle_route() |
|
205 | - * |
|
206 | - * @param string $path |
|
207 | - * @param RequestInterface $request |
|
208 | - * @param ResponseInterface $response |
|
209 | - * @throws InvalidArgumentException |
|
210 | - * @return callable|null Route dispatcher |
|
211 | - */ |
|
204 | + * RoutableInterface > handle_route() |
|
205 | + * |
|
206 | + * @param string $path |
|
207 | + * @param RequestInterface $request |
|
208 | + * @param ResponseInterface $response |
|
209 | + * @throws InvalidArgumentException |
|
210 | + * @return callable|null Route dispatcher |
|
211 | + */ |
|
212 | 212 | public function routeHandler($path, RequestInterface $request, ResponseInterface $response) |
213 | 213 | { |
214 | 214 | if (!is_string($path)) { |
@@ -10,35 +10,35 @@ discard block |
||
10 | 10 | trait MetatagTrait |
11 | 11 | { |
12 | 12 | /** |
13 | - * @var TranslationString $metaTitle |
|
14 | - */ |
|
13 | + * @var TranslationString $metaTitle |
|
14 | + */ |
|
15 | 15 | private $metaTitle; |
16 | 16 | /** |
17 | - * @var TranslationString $metaDescription |
|
18 | - */ |
|
17 | + * @var TranslationString $metaDescription |
|
18 | + */ |
|
19 | 19 | private $metaDescription; |
20 | 20 | /** |
21 | - * @var TranslationString $metaImage |
|
22 | - */ |
|
21 | + * @var TranslationString $metaImage |
|
22 | + */ |
|
23 | 23 | private $metaImage; |
24 | 24 | /** |
25 | - * @var TranslationString $metaAuthor |
|
26 | - */ |
|
25 | + * @var TranslationString $metaAuthor |
|
26 | + */ |
|
27 | 27 | private $metaAuthor; |
28 | 28 | |
29 | 29 | /** |
30 | - * @var string $facebookAppId |
|
31 | - */ |
|
30 | + * @var string $facebookAppId |
|
31 | + */ |
|
32 | 32 | private $facebookAppId; |
33 | 33 | |
34 | 34 | /** |
35 | - * @var TranslationString $opengraphTitle |
|
36 | - */ |
|
35 | + * @var TranslationString $opengraphTitle |
|
36 | + */ |
|
37 | 37 | private $opengraphTitle; |
38 | 38 | |
39 | 39 | /** |
40 | - * @var TranslationString $siteName |
|
41 | - */ |
|
40 | + * @var TranslationString $siteName |
|
41 | + */ |
|
42 | 42 | private $opengraphSiteName; |
43 | 43 | private $opengraphDescription; |
44 | 44 | private $opengraphType; |
@@ -48,14 +48,14 @@ discard block |
||
48 | 48 | |
49 | 49 | |
50 | 50 | /** |
51 | - * @return string |
|
52 | - */ |
|
51 | + * @return string |
|
52 | + */ |
|
53 | 53 | abstract public function canonicalUrl(); |
54 | 54 | |
55 | 55 | /** |
56 | - * @param mixed $title |
|
57 | - * @return MetatagInterface Chainable |
|
58 | - */ |
|
56 | + * @param mixed $title |
|
57 | + * @return MetatagInterface Chainable |
|
58 | + */ |
|
59 | 59 | public function setMetaTitle($title) |
60 | 60 | { |
61 | 61 | $this->metaTitle = new TranslationString($title); |
@@ -63,17 +63,17 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return TranslationString |
|
67 | - */ |
|
66 | + * @return TranslationString |
|
67 | + */ |
|
68 | 68 | public function metaTitle() |
69 | 69 | { |
70 | 70 | return $this->metaTitle(); |
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
74 | - * @param mixed $description |
|
75 | - * @return MetatagInterface Chainable |
|
76 | - */ |
|
74 | + * @param mixed $description |
|
75 | + * @return MetatagInterface Chainable |
|
76 | + */ |
|
77 | 77 | public function setMetaDescription($description) |
78 | 78 | { |
79 | 79 | $this->metaDescription = new TranslationString($description); |
@@ -81,17 +81,17 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
84 | - * @return TranslationString |
|
85 | - */ |
|
84 | + * @return TranslationString |
|
85 | + */ |
|
86 | 86 | public function metaDescription() |
87 | 87 | { |
88 | 88 | return $this->metaDescription(); |
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | - * @param mixed $image |
|
93 | - * @return MetatagInterface Chainable |
|
94 | - */ |
|
92 | + * @param mixed $image |
|
93 | + * @return MetatagInterface Chainable |
|
94 | + */ |
|
95 | 95 | public function setMetaImage($image) |
96 | 96 | { |
97 | 97 | $this->metaImage = new TranslationString($image); |
@@ -99,17 +99,17 @@ discard block |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | /** |
102 | - * @return TranslationString |
|
103 | - */ |
|
102 | + * @return TranslationString |
|
103 | + */ |
|
104 | 104 | public function metaImage() |
105 | 105 | { |
106 | 106 | return $this->metaImage(); |
107 | 107 | } |
108 | 108 | |
109 | 109 | /** |
110 | - * @param mixed $author |
|
111 | - * @return MetatagInterface Chainable |
|
112 | - */ |
|
110 | + * @param mixed $author |
|
111 | + * @return MetatagInterface Chainable |
|
112 | + */ |
|
113 | 113 | public function setMetaAuthor($author) |
114 | 114 | { |
115 | 115 | $this->metaAuthor = new TranslationString($author); |
@@ -117,16 +117,16 @@ discard block |
||
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
120 | - * @return TranslationString |
|
121 | - */ |
|
120 | + * @return TranslationString |
|
121 | + */ |
|
122 | 122 | public function metaAuthor() |
123 | 123 | { |
124 | 124 | return $this->metaAuthor(); |
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
128 | - * @return string |
|
129 | - */ |
|
128 | + * @return string |
|
129 | + */ |
|
130 | 130 | public function metaTags() |
131 | 131 | { |
132 | 132 | $tags = ''; |
@@ -134,9 +134,9 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** |
137 | - * @param string $appId The facebook App ID (numeric string) |
|
138 | - * @return MetatagInterface Chainable |
|
139 | - */ |
|
137 | + * @param string $appId The facebook App ID (numeric string) |
|
138 | + * @return MetatagInterface Chainable |
|
139 | + */ |
|
140 | 140 | public function setFacebookAppId($appId) |
141 | 141 | { |
142 | 142 | $this->facebookAppId = $appId; |
@@ -144,17 +144,17 @@ discard block |
||
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
147 | - * @return string |
|
148 | - */ |
|
147 | + * @return string |
|
148 | + */ |
|
149 | 149 | public function facebookAppId() |
150 | 150 | { |
151 | 151 | return $this->facebookAppId; |
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
155 | - * @param mixed $title |
|
156 | - * @return MetatagInterface Chainable |
|
157 | - */ |
|
155 | + * @param mixed $title |
|
156 | + * @return MetatagInterface Chainable |
|
157 | + */ |
|
158 | 158 | public function setOpengraphTitle($title) |
159 | 159 | { |
160 | 160 | $this->opengraphTitle = new TranslationString($title); |
@@ -162,17 +162,17 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @return TranslationString |
|
166 | - */ |
|
165 | + * @return TranslationString |
|
166 | + */ |
|
167 | 167 | public function opengraphTitle() |
168 | 168 | { |
169 | 169 | return $this->opengraphTitle; |
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
173 | - * @param mixed $siteName |
|
174 | - * @return MetatagInterface Chainable |
|
175 | - */ |
|
173 | + * @param mixed $siteName |
|
174 | + * @return MetatagInterface Chainable |
|
175 | + */ |
|
176 | 176 | public function setOpengraphSiteName($siteName) |
177 | 177 | { |
178 | 178 | $this->opengraphSiteName = new TranslationString($siteName); |
@@ -180,25 +180,25 @@ discard block |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
183 | - * @return TranslationString |
|
184 | - */ |
|
183 | + * @return TranslationString |
|
184 | + */ |
|
185 | 185 | public function opengraphSiteName() |
186 | 186 | { |
187 | 187 | return $this->opengraphSiteName; |
188 | 188 | } |
189 | 189 | |
190 | 190 | /** |
191 | - * @param mixed $description |
|
192 | - * @return MetatagInterface Chainable |
|
193 | - */ |
|
191 | + * @param mixed $description |
|
192 | + * @return MetatagInterface Chainable |
|
193 | + */ |
|
194 | 194 | public function setOpengraphDescription($description) |
195 | 195 | { |
196 | 196 | $this->opengraphDescription = new TranslationString($description); |
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
200 | - * @return TranslationString |
|
201 | - */ |
|
200 | + * @return TranslationString |
|
201 | + */ |
|
202 | 202 | public function opengraphDescription() |
203 | 203 | { |
204 | 204 | return $this->opengraphDescription; |
@@ -249,8 +249,8 @@ discard block |
||
249 | 249 | } |
250 | 250 | |
251 | 251 | /** |
252 | - * @return string |
|
253 | - */ |
|
252 | + * @return string |
|
253 | + */ |
|
254 | 254 | public function opengraphTags() |
255 | 255 | { |
256 | 256 | return ''; |
@@ -8,96 +8,96 @@ discard block |
||
8 | 8 | interface MetatagInterface |
9 | 9 | { |
10 | 10 | /** |
11 | - * @return string |
|
12 | - */ |
|
11 | + * @return string |
|
12 | + */ |
|
13 | 13 | public function canonicalUrl(); |
14 | 14 | |
15 | 15 | /** |
16 | - * @param mixed $title |
|
17 | - * @return MetatagInterface Chainable |
|
18 | - */ |
|
16 | + * @param mixed $title |
|
17 | + * @return MetatagInterface Chainable |
|
18 | + */ |
|
19 | 19 | public function setMetaTitle($title); |
20 | 20 | |
21 | 21 | /** |
22 | - * @return TranslationString |
|
23 | - */ |
|
22 | + * @return TranslationString |
|
23 | + */ |
|
24 | 24 | public function metaTitle(); |
25 | 25 | |
26 | 26 | /** |
27 | - * @param mixed $description |
|
28 | - * @return MetatagInterface Chainable |
|
29 | - */ |
|
27 | + * @param mixed $description |
|
28 | + * @return MetatagInterface Chainable |
|
29 | + */ |
|
30 | 30 | public function setMetaDescription($description); |
31 | 31 | |
32 | 32 | /** |
33 | - * @return TranslationString |
|
34 | - */ |
|
33 | + * @return TranslationString |
|
34 | + */ |
|
35 | 35 | public function metaDescription(); |
36 | 36 | |
37 | 37 | /** |
38 | - * @param mixed $image |
|
39 | - * @return MetatageInterface Chainable |
|
40 | - */ |
|
38 | + * @param mixed $image |
|
39 | + * @return MetatageInterface Chainable |
|
40 | + */ |
|
41 | 41 | public function setMetaImage($image); |
42 | 42 | |
43 | 43 | /** |
44 | - * @return TranslationString |
|
45 | - */ |
|
44 | + * @return TranslationString |
|
45 | + */ |
|
46 | 46 | public function metaImage(); |
47 | 47 | |
48 | 48 | /** |
49 | - * @param mixed $author |
|
50 | - * @return MetatagInterface Chainable |
|
51 | - */ |
|
49 | + * @param mixed $author |
|
50 | + * @return MetatagInterface Chainable |
|
51 | + */ |
|
52 | 52 | public function setMetaAuthor($author); |
53 | 53 | |
54 | 54 | /** |
55 | - * @return TranslationString |
|
56 | - */ |
|
55 | + * @return TranslationString |
|
56 | + */ |
|
57 | 57 | public function metaAuthor(); |
58 | 58 | |
59 | 59 | /** |
60 | - * @return string |
|
61 | - */ |
|
60 | + * @return string |
|
61 | + */ |
|
62 | 62 | public function metaTags(); |
63 | 63 | |
64 | 64 | /** |
65 | - * @param string $appId The facebook App ID (numeric string) |
|
66 | - * @return MetatagInterface Chainable |
|
67 | - */ |
|
65 | + * @param string $appId The facebook App ID (numeric string) |
|
66 | + * @return MetatagInterface Chainable |
|
67 | + */ |
|
68 | 68 | public function setFacebookAppId($appId); |
69 | 69 | |
70 | 70 | /** |
71 | - * @return string |
|
72 | - */ |
|
71 | + * @return string |
|
72 | + */ |
|
73 | 73 | public function facebookAppId(); |
74 | 74 | |
75 | 75 | /** |
76 | - * @param mixed $title |
|
77 | - * @return MetatagInterface Chainable |
|
78 | - */ |
|
76 | + * @param mixed $title |
|
77 | + * @return MetatagInterface Chainable |
|
78 | + */ |
|
79 | 79 | public function setOpengraphTitle($title); |
80 | 80 | |
81 | 81 | /** |
82 | - * @return TranslationString |
|
83 | - */ |
|
82 | + * @return TranslationString |
|
83 | + */ |
|
84 | 84 | public function opengraphTitle(); |
85 | 85 | |
86 | 86 | /** |
87 | - * @param mixed $siteName |
|
88 | - * @return MetatagInterface Chainable |
|
89 | - */ |
|
87 | + * @param mixed $siteName |
|
88 | + * @return MetatagInterface Chainable |
|
89 | + */ |
|
90 | 90 | public function setOpengraphSiteName($siteName); |
91 | 91 | |
92 | 92 | /** |
93 | - * @return TranslationString |
|
94 | - */ |
|
93 | + * @return TranslationString |
|
94 | + */ |
|
95 | 95 | public function opengraphSiteName(); |
96 | 96 | |
97 | 97 | /** |
98 | - * @param mixed $description |
|
99 | - * @return MetatagInterface Chainable |
|
100 | - */ |
|
98 | + * @param mixed $description |
|
99 | + * @return MetatagInterface Chainable |
|
100 | + */ |
|
101 | 101 | public function setOpengraphDescription($description); |
102 | 102 | public function opengraphDescription(); |
103 | 103 | public function setOpengraphType($type); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | public function opengraphPublisher(); |
111 | 111 | |
112 | 112 | /** |
113 | - * @return string |
|
114 | - */ |
|
113 | + * @return string |
|
114 | + */ |
|
115 | 115 | public function opengraphTags(); |
116 | 116 | } |
@@ -12,18 +12,18 @@ |
||
12 | 12 | use CategoryTrait; |
13 | 13 | |
14 | 14 | /** |
15 | - * CategoryTrait > item_type() |
|
16 | - * |
|
17 | - * @return string |
|
18 | - */ |
|
15 | + * CategoryTrait > item_type() |
|
16 | + * |
|
17 | + * @return string |
|
18 | + */ |
|
19 | 19 | public function item_type() |
20 | 20 | { |
21 | 21 | return 'charcoal/cms/news'; |
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
25 | - * @return Collection |
|
26 | - */ |
|
25 | + * @return Collection |
|
26 | + */ |
|
27 | 27 | public function load_items() |
28 | 28 | { |
29 | 29 | return []; |