Copied!

ContentItem

ContentItem.php : 21
Extends ValueObject

Content item Value Object - a composite of Content and Type instances.

Properties

public $content read-only

ContentItem.php
public Content $content

protected $content

ContentItem.php : 24
protected Content $content

public $contentInfo read-only

ContentItem.php
public ContentInfo $contentInfo

protected $contentInfo

ContentItem.php : 27
protected ContentInfo $contentInfo

public $type read-only

ContentItem.php
public Type $type

protected $type

ContentItem.php : 30
protected Type $type

Methods

public__construct()

ValueObject.php : 31

Construct object optionally with a set of properties.

public __construct([array<string, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string, mixed> [] -

publicgetContent()

ContentItem.php : 43
public getContent() : Content

Return values

Content

publicgetContentInfo()

ContentItem.php : 48
public getContentInfo() : ContentInfo

Return values

ContentInfo

publicgetType()

ContentItem.php : 53
public getType() : Type

Return values

Type

protectedgetProperties()

ValueObject.php : 54

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Tags
Serializerignore

()