@@ -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 | { |
@@ -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 | { |
@@ -5,11 +5,9 @@ |
||
| 5 | 5 | use InvalidArgumentException; |
| 6 | 6 | |
| 7 | 7 | // Module `charcoal-core` dependencies |
| 8 | -use Charcoal\Model\Collection; |
|
| 9 | 8 | |
| 10 | 9 | // Module `charcoal-translation` dependencies |
| 11 | 10 | use Charcoal\Translation\TranslationString; |
| 12 | - |
|
| 13 | 11 | use Charcoal\Loader\CollectionLoader; |
| 14 | 12 | |
| 15 | 13 | // Module `charcoal-base` dependencies |
@@ -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 | { |
@@ -88,8 +88,8 @@ discard block |
||
| 88 | 88 | abstract public function defaultMetaImage(); |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * @param mixed $title The meta tile (localized). |
|
| 92 | - * @return MetatagInterface Chainable |
|
| 91 | + * @param TranslationString $title The meta tile (localized). |
|
| 92 | + * @return MetatagTrait Chainable |
|
| 93 | 93 | */ |
| 94 | 94 | public function setMetaTitle($title) |
| 95 | 95 | { |
@@ -106,8 +106,8 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | - * @param mixed $description The meta description (localized). |
|
| 110 | - * @return MetatagInterface Chainable |
|
| 109 | + * @param TranslationString $description The meta description (localized). |
|
| 110 | + * @return MetatagTrait Chainable |
|
| 111 | 111 | */ |
| 112 | 112 | public function setMetaDescription($description) |
| 113 | 113 | { |
@@ -124,8 +124,8 @@ discard block |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | - * @param mixed $image The meta image (localized). |
|
| 128 | - * @return MetatagInterface Chainable |
|
| 127 | + * @param TranslationString $image The meta image (localized). |
|
| 128 | + * @return MetatagTrait Chainable |
|
| 129 | 129 | */ |
| 130 | 130 | public function setMetaImage($image) |
| 131 | 131 | { |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | |
| 144 | 144 | /** |
| 145 | 145 | * @param mixed $author The meta author (localized). |
| 146 | - * @return MetatagInterface Chainable |
|
| 146 | + * @return MetatagTrait Chainable |
|
| 147 | 147 | */ |
| 148 | 148 | public function setMetaAuthor($author) |
| 149 | 149 | { |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | 172 | * @param string $appId The facebook App ID (numeric string). |
| 173 | - * @return MetatagInterface Chainable |
|
| 173 | + * @return MetatagTrait Chainable |
|
| 174 | 174 | */ |
| 175 | 175 | public function setFacebookAppId($appId) |
| 176 | 176 | { |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | |
| 189 | 189 | /** |
| 190 | 190 | * @param mixed $title The opengraph title (localized). |
| 191 | - * @return MetatagInterface Chainable |
|
| 191 | + * @return MetatagTrait Chainable |
|
| 192 | 192 | */ |
| 193 | 193 | public function setOpengraphTitle($title) |
| 194 | 194 | { |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | /** |
| 215 | 215 | * @param mixed $siteName The site name (localized). |
| 216 | - * @return MetatagInterface Chainable |
|
| 216 | + * @return MetatagTrait Chainable |
|
| 217 | 217 | */ |
| 218 | 218 | public function setOpengraphSiteName($siteName) |
| 219 | 219 | { |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | |
| 232 | 232 | /** |
| 233 | 233 | * @param mixed $description The opengraph description (localized). |
| 234 | - * @return MetatagInterface Chainable |
|
| 234 | + * @return MetatagTrait Chainable |
|
| 235 | 235 | */ |
| 236 | 236 | public function setOpengraphDescription($description) |
| 237 | 237 | { |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | |
| 253 | 253 | /** |
| 254 | 254 | * @param string $type The opengraph type. |
| 255 | - * @return MetatagInterface Chainable |
|
| 255 | + * @return MetatagTrait Chainable |
|
| 256 | 256 | */ |
| 257 | 257 | public function setOpengraphType($type) |
| 258 | 258 | { |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | |
| 271 | 271 | /** |
| 272 | 272 | * @param mixed $image The opengraph image (localized). |
| 273 | - * @return MetatagInterface Chainable |
|
| 273 | + * @return MetatagTrait Chainable |
|
| 274 | 274 | */ |
| 275 | 275 | public function setOpengraphImage($image) |
| 276 | 276 | { |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | |
| 292 | 292 | /** |
| 293 | 293 | * @param mixed $author The opengraph author (localized). |
| 294 | - * @return MetatagInterface Chainable |
|
| 294 | + * @return MetatagTrait Chainable |
|
| 295 | 295 | */ |
| 296 | 296 | public function setOpengraphAuthor($author) |
| 297 | 297 | { |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | 314 | * @param mixed $publisher The opengraph publisher (localized). |
| 315 | - * @return MetatagInterface Chainable |
|
| 315 | + * @return MetatagTrait Chainable |
|
| 316 | 316 | */ |
| 317 | 317 | public function setOpengraphPulisher($publisher) |
| 318 | 318 | { |
@@ -4,12 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | use DateTime; |
| 6 | 6 | use DateTimeInterface; |
| 7 | -use Exception; |
|
| 8 | 7 | use InvalidArgumentException; |
| 9 | 8 | |
| 10 | 9 | // PSR-7 (HTTP messaging) dependencies |
| 11 | -use Psr\Http\Message\RequestInterface; |
|
| 12 | -use Psr\Http\Message\ResponseInterface; |
|
| 13 | 10 | |
| 14 | 11 | // Module `charcoal-object` dependencies |
| 15 | 12 | use Charcoal\Object\Content; |
@@ -6,9 +6,6 @@ |
||
| 6 | 6 | use DateTimeInterface; |
| 7 | 7 | use InvalidArgumentException; |
| 8 | 8 | |
| 9 | -use Psr\Http\Message\RequestInterface; |
|
| 10 | -use Psr\Http\Message\ResponseInterface; |
|
| 11 | - |
|
| 12 | 9 | // Dependencies from `charcoal-translation` |
| 13 | 10 | use Charcoal\Translation\TranslationString; |
| 14 | 11 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use InvalidArgumentException; |
| 6 | 6 | use RuntimeException; |
| 7 | - |
|
| 8 | 7 | use Pimple\Container; |
| 9 | 8 | |
| 10 | 9 | // From PSR-7 (HTTP Messaging) |
@@ -74,8 +74,8 @@ |
||
| 74 | 74 | |
| 75 | 75 | $section = $this->loadSectionFromPath($container); |
| 76 | 76 | |
| 77 | - $templateIdent = (string)$section->templateIdent(); |
|
| 78 | - $templateController = (string)$section->templateIdent(); |
|
| 77 | + $templateIdent = (string) $section->templateIdent(); |
|
| 78 | + $templateController = (string) $section->templateIdent(); |
|
| 79 | 79 | |
| 80 | 80 | if (!$templateController) { |
| 81 | 81 | return $response->withStatus(404); |
@@ -10,11 +10,11 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | final class Text extends AbstractText |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * CategorizableTrait > categoryType() |
|
| 15 | - * |
|
| 16 | - * @return string |
|
| 17 | - */ |
|
| 13 | + /** |
|
| 14 | + * CategorizableTrait > categoryType() |
|
| 15 | + * |
|
| 16 | + * @return string |
|
| 17 | + */ |
|
| 18 | 18 | public function categoryType() |
| 19 | 19 | { |
| 20 | 20 | return TextCategory::class; |