Copied!

SiteList

SiteList.php : 17
Final
Extends ValueObject

The base class for all value objects and structs.

Properties

protected $pages

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

protected $sites

SiteList.php : 26
protected array<string|int, mixed> $sites = []

protected $totalCount

SiteList.php : 25
protected int $totalCount = 0

Methods

public__construct()

SiteList.php : 24

Construct object optionally with a set of properties.

public __construct([int $totalCount = 0 ][, array<int, Site$sites = [] ][, array<int, Page$pages = [] ])

Parameters

Name Type Default value Description
$totalCount int 0

The total count of found sites

$sites array<int, Site> [] -
$pages array<int, Page> [] -

publicgetPages()

SiteList.php : 43
public getPages() : array<int, Page>

Return values

array<int, Page>

publicgetSites()

SiteList.php : 35
public getSites() : array<int, Site>

Return values

array<int, Site>

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]