Copied!

LocationList

LocationList.php : 25
Extends ValueObject
Implements IteratorAggregate, TotalCountAwareInterface

This class represents a queried location list holding a totalCount and a partial list of locations (by offset/limit parameters and permission filters).

Properties

public $locations read-only

LocationList.php
public array<string|int, Location$locations
  • the partial list of Locations controlled by offset/limit.

public $totalCount read-only

LocationList.php
public int $totalCount
  • the total count of found locations (filtered by permissions)

protected $locations

LocationList.php : 41

the partial list of locations controlled by offset/limit.

protected array<string|int, Location$locations = []

protected $totalCount

LocationList.php : 34

The total count of non-paginated Locations (filtered by permissions).

protected int $totalCount = 0

Use getTotalCount to fetch it.

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

publicgetIterator()

LocationList.php : 46
public getIterator() : array<string|int, Location>|Traversable

Return values

array<string|int, Location>|Traversable

publicgetTotalCount()

LocationList.php : 51

Get a total number of items matched by criteria, regardless of slice (page, collection) size.

public getTotalCount() : int

Return values

int

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>