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

public $contentInfo read-only

ContentItem.php
public ContentInfo $contentInfo

public $type read-only

ContentItem.php
public Type $type

protected $content

ContentItem.php : 24
protected Content $content

protected $contentInfo

ContentItem.php : 27
protected ContentInfo $contentInfo

protected $type

ContentItem.php : 30
protected Type $type

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

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

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string|int, 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 : 50

Function where list of properties are returned.

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

Used by attributes(), override to add dynamic properties

Parameters

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

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>