@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | /** |
| 49 | 49 | * @param mixed $title The news title (localized). |
| 50 | - * @return TranslationString |
|
| 50 | + * @return AbstractText |
|
| 51 | 51 | */ |
| 52 | 52 | public function setTitle($title) |
| 53 | 53 | { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * @param mixed $subtitle The news subtitle (localized). |
| 68 | - * @return Event Chainable |
|
| 68 | + * @return AbstractText Chainable |
|
| 69 | 69 | */ |
| 70 | 70 | public function setSubtitle($subtitle) |
| 71 | 71 | { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * @param mixed $content The news content (localized). |
| 86 | - * @return Event Chainable |
|
| 86 | + * @return AbstractText Chainable |
|
| 87 | 87 | */ |
| 88 | 88 | public function setContent($content) |
| 89 | 89 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * @param mixed $title The meta tile (localized). |
| 92 | - * @return MetatagInterface Chainable |
|
| 92 | + * @return MetatagTrait Chainable |
|
| 93 | 93 | */ |
| 94 | 94 | public function setMetaTitle($title) |
| 95 | 95 | { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * @param mixed $description The meta description (localized). |
| 113 | - * @return MetatagInterface Chainable |
|
| 113 | + * @return MetatagTrait Chainable |
|
| 114 | 114 | */ |
| 115 | 115 | public function setMetaDescription($description) |
| 116 | 116 | { |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | /** |
| 133 | 133 | * @param mixed $image The meta image (localized). |
| 134 | - * @return MetatagInterface Chainable |
|
| 134 | + * @return MetatagTrait Chainable |
|
| 135 | 135 | */ |
| 136 | 136 | public function setMetaImage($image) |
| 137 | 137 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | /** |
| 154 | 154 | * @param mixed $author The meta author (localized). |
| 155 | - * @return MetatagInterface Chainable |
|
| 155 | + * @return MetatagTrait Chainable |
|
| 156 | 156 | */ |
| 157 | 157 | public function setMetaAuthor($author) |
| 158 | 158 | { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | |
| 180 | 180 | /** |
| 181 | 181 | * @param string $appId The facebook App ID (numeric string). |
| 182 | - * @return MetatagInterface Chainable |
|
| 182 | + * @return MetatagTrait Chainable |
|
| 183 | 183 | */ |
| 184 | 184 | public function setFacebookAppId($appId) |
| 185 | 185 | { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | 199 | * @param mixed $title The opengraph title (localized). |
| 200 | - * @return MetatagInterface Chainable |
|
| 200 | + * @return MetatagTrait Chainable |
|
| 201 | 201 | */ |
| 202 | 202 | public function setOpengraphTitle($title) |
| 203 | 203 | { |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | |
| 223 | 223 | /** |
| 224 | 224 | * @param mixed $siteName The site name (localized). |
| 225 | - * @return MetatagInterface Chainable |
|
| 225 | + * @return MetatagTrait Chainable |
|
| 226 | 226 | */ |
| 227 | 227 | public function setOpengraphSiteName($siteName) |
| 228 | 228 | { |
@@ -240,7 +240,7 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | /** |
| 242 | 242 | * @param mixed $description The opengraph description (localized). |
| 243 | - * @return MetatagInterface Chainable |
|
| 243 | + * @return MetatagTrait Chainable |
|
| 244 | 244 | */ |
| 245 | 245 | public function setOpengraphDescription($description) |
| 246 | 246 | { |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | |
| 262 | 262 | /** |
| 263 | 263 | * @param string $type The opengraph type. |
| 264 | - * @return MetatagInterface Chainable |
|
| 264 | + * @return MetatagTrait Chainable |
|
| 265 | 265 | */ |
| 266 | 266 | public function setOpengraphType($type) |
| 267 | 267 | { |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | |
| 280 | 280 | /** |
| 281 | 281 | * @param mixed $image The opengraph image (localized). |
| 282 | - * @return MetatagInterface Chainable |
|
| 282 | + * @return MetatagTrait Chainable |
|
| 283 | 283 | */ |
| 284 | 284 | public function setOpengraphImage($image) |
| 285 | 285 | { |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | |
| 301 | 301 | /** |
| 302 | 302 | * @param mixed $author The opengraph author (localized). |
| 303 | - * @return MetatagInterface Chainable |
|
| 303 | + * @return MetatagTrait Chainable |
|
| 304 | 304 | */ |
| 305 | 305 | public function setOpengraphAuthor($author) |
| 306 | 306 | { |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | 323 | * @param mixed $publisher The opengraph publisher (localized). |
| 324 | - * @return MetatagInterface Chainable |
|
| 324 | + * @return MetatagTrait Chainable |
|
| 325 | 325 | */ |
| 326 | 326 | public function setOpengraphPulisher($publisher) |
| 327 | 327 | { |
@@ -9,11 +9,11 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | final class Text extends AbstractText |
| 11 | 11 | { |
| 12 | - /** |
|
| 13 | - * CategorizableTrait > categoryType() |
|
| 14 | - * |
|
| 15 | - * @return string |
|
| 16 | - */ |
|
| 12 | + /** |
|
| 13 | + * CategorizableTrait > categoryType() |
|
| 14 | + * |
|
| 15 | + * @return string |
|
| 16 | + */ |
|
| 17 | 17 | public function categoryType() |
| 18 | 18 | { |
| 19 | 19 | return 'charcoal/cms/text-category'; |
@@ -66,8 +66,8 @@ |
||
| 66 | 66 | |
| 67 | 67 | $section = $this->loadSectionFromPath($container); |
| 68 | 68 | |
| 69 | - $templateIdent = (string)$section->templateIdent(); |
|
| 70 | - $templateController = (string)$section->templateIdent(); |
|
| 69 | + $templateIdent = (string) $section->templateIdent(); |
|
| 70 | + $templateController = (string) $section->templateIdent(); |
|
| 71 | 71 | |
| 72 | 72 | $templateFactory = $container['template/factory']; |
| 73 | 73 | $templateFactory->setDefaultClass($config['default_controller']); |
@@ -204,7 +204,7 @@ |
||
| 204 | 204 | * |
| 205 | 205 | * @param string $className The class name of the object route model. |
| 206 | 206 | * @throws InvalidArgumentException If the class name is not a string. |
| 207 | - * @return AbstractPropertyDisplay Chainable |
|
| 207 | + * @return GenericRoute Chainable |
|
| 208 | 208 | */ |
| 209 | 209 | protected function setObjectRouteClass($className) |
| 210 | 210 | { |
@@ -183,9 +183,9 @@ |
||
| 183 | 183 | $controllerProperty = $contextObject->property('controller_ident'); |
| 184 | 184 | |
| 185 | 185 | // Methods from TemplateableInterface / Trait |
| 186 | - $templateIdent = $contextObject->templateIdent() ? : $objectRoute->routeTemplate(); |
|
| 186 | + $templateIdent = $contextObject->templateIdent() ?: $objectRoute->routeTemplate(); |
|
| 187 | 187 | // Default fallback to routeTemplate |
| 188 | - $controllerIdent = $contextObject->controllerIdent() ? : $templateIdent; |
|
| 188 | + $controllerIdent = $contextObject->controllerIdent() ?: $templateIdent; |
|
| 189 | 189 | |
| 190 | 190 | $templateChoice = $identProperty->choice($templateIdent); |
| 191 | 191 | } else { |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | /** |
| 124 | 124 | * Retrieve the available section types. |
| 125 | 125 | * |
| 126 | - * @return array |
|
| 126 | + * @return string[] |
|
| 127 | 127 | */ |
| 128 | 128 | public function acceptedSectionTypes() |
| 129 | 129 | { |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * @param mixed $title The section title (localized). |
| 149 | - * @return TranslationString |
|
| 149 | + * @return AbstractSection |
|
| 150 | 150 | */ |
| 151 | 151 | public function setTitle($title) |
| 152 | 152 | { |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * Set the renderable object's template identifier. |
| 34 | 34 | * |
| 35 | 35 | * @param mixed $template The template ID. |
| 36 | - * @return TemplateableInterface Chainable |
|
| 36 | + * @return TemplateableTrait Chainable |
|
| 37 | 37 | */ |
| 38 | 38 | public function setTemplateIdent($template) |
| 39 | 39 | { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * Set the renderable object's template controller identifier. |
| 57 | 57 | * |
| 58 | 58 | * @param mixed $ident The template controller identifier. |
| 59 | - * @return TemplateableInterface Chainable |
|
| 59 | + * @return TemplateableTrait Chainable |
|
| 60 | 60 | */ |
| 61 | 61 | public function setControllerIdent($ident) |
| 62 | 62 | { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * Customize the template's options. |
| 80 | 80 | * |
| 81 | 81 | * @param mixed $options Template options. |
| 82 | - * @return TemplateableInterface Chainable |
|
| 82 | + * @return TemplateableTrait Chainable |
|
| 83 | 83 | */ |
| 84 | 84 | public function setTemplateOptions($options) |
| 85 | 85 | { |