Copied!

Page

Page.php : 14
Final
Extends ValueObject

The base class for all value objects and structs.

Supports read-only properties by marking them as protected. In this case they will only be writable using constructor, and need to be documented using @property-read <type> <$var> annotation in class doc in addition to inline property doc. Writable properties must be public and must be documented inline.

Constants

publicSTATUS_ONLINE

Page.php : 16
public mixed STATUS_ONLINE = 1

Properties

protected $languages

Page.php : 25
protected array<string|int, mixed> $languages

protected $name

Page.php : 24
protected string $name

protected $status

Page.php : 18
protected int $status

protected $treeRootLocation

Page.php : 26
protected Location|null $treeRootLocation

Methods

public__construct()

Page.php : 23

Construct object optionally with a set of properties.

public __construct(string $name, array<string|int, string> $languages, Location|null $treeRootLocation)

Parameters

Name Type Default value Description
$name string - -
$languages array<string|int, string> - -
$treeRootLocation Location|null - -

publicgetLanguages()

Page.php : 44
public getLanguages() : array<string|int, string>

Return values

array<string|int, string>

publicgetName()

Page.php : 36
public getName() : string

Return values

string

publicgetStatus()

Page.php : 31
public getStatus() : int

Return values

int

publicgetTreeRootLocation()

Page.php : 52

Tree root Location will be empty when user does not have permission to load it.

public getTreeRootLocation() : Location|null

Return values

Location|null

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]