Copied!

ScheduledEntry

ScheduledEntry.php : 17
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.

Properties

public $action

ScheduledEntry.php : 26
public string $action

public $content

ScheduledEntry.php : 23
public Content $content

public $date

ScheduledEntry.php : 24
public DateTime $date

public $id

ScheduledEntry.php : 20
public int $id

public $urlRoot

ScheduledEntry.php : 25
public string $urlRoot

public $user

ScheduledEntry.php : 21
public User $user

public $versionInfo

ScheduledEntry.php : 22
public VersionInfo|null $versionInfo

Methods

public__construct()

ScheduledEntry.php : 19

Construct object optionally with a set of properties.

public __construct(int $id, User $user, VersionInfo|null $versionInfo, Content $content, DateTime $date, string $urlRoot, string $action)

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$id int - -
$user User - -
$versionInfo VersionInfo|null - -
$content Content - -
$date DateTime - -
$urlRoot string - -
$action string - -

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]