Copied!

Event

Event.php : 22

Base class for calendar events.

See documentation

Methods

public__construct()

Event.php : 33
public __construct(EventTypeInterface $type, string $id, DateTimeInterface $dateTime)

Parameters

Name Type Default value Description
$type EventTypeInterface - -
$id string - -
$dateTime DateTimeInterface - -

public__toString()

Event.php : 97
public __toString() : mixed

publiccompareTo()

Event.php : 92

Compares $this with given $event.

public compareTo(Event $event) : int

Parameters

Name Type Default value Description
$event Event - -

Return values

int

publicgetDateTime()

Event.php : 54
public getDateTime() : DateTimeInterface

Return values

DateTimeInterface

publicgetId()

Event.php : 49
public getId() : string

Return values

string

publicgetName()

Event.php : 62

Returns human-readable label of the event. For example: "Birthday of John".

public getName() : string

Return values

string

publicgetType()

Event.php : 44
public getType() : EventTypeInterface

Return values

EventTypeInterface

publicisAfter()

Event.php : 72

Returns true if the $this is after given $event.

public isAfter(Event $event) : bool

Parameters

Name Type Default value Description
$event Event - -

Return values

bool

publicisBefore()

Event.php : 82

Returns true if the $this is before given $event.

public isBefore(Event $event) : bool

Parameters

Name Type Default value Description
$event Event - -

Return values

bool

protectedexecuteAction()

Event.php : 102
protected executeAction(EventActionContext $context) : void

Parameters

Name Type Default value Description
$context EventActionContext - -