Copied!

SearchResult

SearchResult.php : 19
Final
Extends ValueObject
Implements IteratorAggregate

The base class for all value objects and structs.

Properties

protected $items

SearchResult.php : 24
protected array<int, ContentType$items = []

protected $totalCount

SearchResult.php : 21
protected int $totalCount = 0

Methods

public__construct()

ValueObject.php : 32

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> [] -

publicgetContentTypes()

SearchResult.php : 34
public getContentTypes() : array<int, ContentType>

Return values

array<int, ContentType>

publicgetIterator()

SearchResult.php : 42
public getIterator() : Traversable<int, ContentType>

Return values

Traversable<int, ContentType>

publicgetTotalCount()

SearchResult.php : 26
public getTotalCount() : int

Return values

int

protectedgetProperties()

ValueObject.php : 53

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>

Attributes
#[Ignore]