ContentStatus
in package
implements
LocalizedContentAttributeInterface, JsonSerializable
Class ContentStatus
This class represents the content active status
Tags
Interfaces, Classes and Traits
- LocalizedContentAttributeInterface
- Interface LocalizedContentAttributeInterface
- JsonSerializable
Table of Contents
- $languageCode : LanguageCode
- $status : string
- Content active status
- __construct() : mixed
- ContentStatus constructor
- content() : string
- Return the content
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
- languageCode() : string
- Return the language code
Properties
$languageCode
protected
LanguageCode
$languageCode
$status
Content active status
protected
string
$status
Methods
__construct()
ContentStatus constructor
public
__construct(string $status, LanguageCode $languageCode) : mixed
Parameters
- $status : string
-
Content status
- $languageCode : LanguageCode
Return values
mixed —content()
Return the content
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