ContentTitle
in package
implements
LocalizedContentAttributeInterface, JsonSerializable
Class ContentTitle
This class represents the localized content title
Tags
Interfaces, Classes and Traits
- LocalizedContentAttributeInterface
- Interface LocalizedContentAttributeInterface
- JsonSerializable
Table of Contents
- $languageCode : string
- Language code
- $title : string
- Content title
- __construct() : mixed
- ContentTitle constructor
- content() : string
- Return the content title
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- languageCode() : string
- Return the language code
Properties
$languageCode
Language code
protected
string
$languageCode
$title
Content title
protected
string
$title
Methods
__construct()
ContentTitle constructor
public
__construct(string $title, LanguageCode $languageCode) : mixed
Parameters
- $title : string
-
Content title
- $languageCode : LanguageCode
-
Language code
Return values
mixed —content()
Return the content title
public
content() : string
Return values
string —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Tags
Return values
mixed —data which can be serialized by json_encode, which is a value of any type other than a resource.
languageCode()
Return the language code
public
languageCode() : string