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.
Properties¶
$design
¶
Template.php
:
24
|
|
$identifier
¶
Template.php
:
20
|
|
$name
¶
Template.php
:
22
|
|
$parentLocation
¶
Template.php
:
27
|
|
$siteAccessGroup
¶
Template.php
:
21
|
|
$siteSkeletonLocation
¶
Template.php
:
26
|
|
$thumbnail
¶
Template.php
:
23
|
|
$userGroupSkeletonLocations
¶
Template.php
:
25
|
|
Methods¶
__construct()
¶
Template.php
:
19
Construct object optionally with a set of properties.
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$identifier | string | - | - |
$siteAccessGroup | string | - | - |
$name | string | - | - |
$thumbnail | string | - | - |
$design | string | - | - |
$userGroupSkeletonLocations | array<int, Location> | - | - |
$siteSkeletonLocation | Location|null | null | - |
$parentLocation | Location|null | null | - |
fromConfiguration()
¶
Template.php
:
31
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$templateConfiguration | TemplateConfiguration | - | - |
Return values
getDesign()
¶
Template.php
:
65
|
|
Return values
string
getIdentifier()
¶
Template.php
:
55
|
|
Return values
string
getName()
¶
Template.php
:
50
|
|
Return values
string
getParentLocation()
¶
Template.php
:
75
|
|
Return values
Location|null
getSiteAccessGroup()
¶
Template.php
:
45
|
|
Return values
string
getSiteSkeletonLocation()
¶
Template.php
:
70
|
|
Return values
Location|null
getThumbnail()
¶
Template.php
:
60
|
|
Return values
string
getUserGroupSkeletonLocations()
¶
Template.php
:
83
|
|
Return values
array<int, Location>
getProperties()
¶
ValueObject.php
:
53
Returns list of available properties' names.
|
|
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]