phpDocumentor

ContentText
in package
implements LocalizedContentAttributeInterface, JsonSerializable

Class ContentText

This class represents the localized content text

Tags
category

System

Interfaces, Classes and Traits

LocalizedContentAttributeInterface
Interface LocalizedContentAttributeInterface
JsonSerializable

Table of Contents

$languageCode  : string
Language code
$text  : string
Content text
__construct()  : mixed
ContentText constructor
content()  : string
Return the content text
jsonSerialize()  : mixed
Specify data which should be serialized to JSON
languageCode()  : string
Return the language code

Properties

Methods

__construct()

ContentText constructor

public __construct(string $text, LanguageCode $languageCode) : mixed
Parameters
$text : string

Content text

$languageCode : LanguageCode

Language code

Return values
mixed

content()

Return the content text

public content() : string
Return values
string

languageCode()

Return the language code

public languageCode() : string
Return values
string

Search results