Copied!

SiteCreateStruct

SiteCreateStruct.php : 23
Extends ValueObject

The base class for all value objects and structs.

Properties

public $copySiteSkeleton read-only

SiteCreateStruct.php
public bool $copySiteSkeleton

public $parentLocationId read-only

SiteCreateStruct.php
public int $parentLocationId

public $publicAccesses read-only

SiteCreateStruct.php
public array<string|int, PublicAccess$publicAccesses

public $siteCreated read-only

SiteCreateStruct.php
public DateTimeInterface $siteCreated

public $siteName read-only

SiteCreateStruct.php
public string $siteName

public $siteSkeletonLocationId read-only

SiteCreateStruct.php
public int|null $siteSkeletonLocationId

protected $copySiteSkeleton

SiteCreateStruct.php : 29
protected bool $copySiteSkeleton

protected $parentLocationId

SiteCreateStruct.php : 41
protected int $parentLocationId

protected $publicAccesses

SiteCreateStruct.php : 35
protected PublicAccess $publicAccesses

protected $siteCreated

SiteCreateStruct.php : 32
protected DateTimeInterface $siteCreated

protected $siteName

SiteCreateStruct.php : 26
protected string $siteName

protected $siteSkeletonLocationId

SiteCreateStruct.php : 38
protected int|null $siteSkeletonLocationId

protected $userGroupSkeletonIds

SiteCreateStruct.php : 44
protected array<string|int, int> $userGroupSkeletonIds

Methods

public__construct()

SiteCreateStruct.php : 46

Construct object optionally with a set of properties.

public __construct(string $siteName, bool $copySiteSkeleton, array<string|int, mixed> $publicAccesses, int $parentLocationId, array<string|int, mixed> $userGroupSkeletonIds[, DateTimeInterface|null $siteCreated = null ][, int|null $siteSkeletonLocationId = null ])

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
$siteName string - -
$copySiteSkeleton bool - -
$publicAccesses array<string|int, mixed> - -
$parentLocationId int - -
$userGroupSkeletonIds array<string|int, mixed> - -
$siteCreated DateTimeInterface|null null -
$siteSkeletonLocationId int|null null -

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>