Copied!

SiteList

SiteList.php : 17
Extends ValueObject

The base class for all value objects and structs.

Properties

public $sites read-only

SiteList.php
public array<string|int, Site$sites

public $totalCount read-only

SiteList.php
public int $totalCount

protected $pages

SiteList.php : 30
protected array<string|int, string> $pages = []

protected $sites

SiteList.php : 27
protected array<string|int, Site$sites = []

protected $totalCount

SiteList.php : 24

The total count of found sites.

protected int $totalCount

Methods

public__construct()

SiteList.php : 32

Construct object optionally with a set of properties.

public __construct([int $totalCount = 0 ][, array<string|int, mixed> $sites = [] ][, array<string|int, mixed> $pages = [] ])

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
$totalCount int 0 -
$sites array<string|int, mixed> [] -
$pages array<string|int, mixed> [] -

publicgetPages()

SiteList.php : 46
public getPages() : array<string|int, mixed>

Return values

array<string|int, mixed>

publicgetSites()

SiteList.php : 41
public getSites() : array<string|int, mixed>

Return values

array<string|int, mixed>

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>