Copied!

Event

Event.php : 22
Abstract

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 : 100
public __toString() : mixed

publiccompareTo()

Event.php : 95

Compares $this with given $event.

public compareTo(Event $event) : int

Parameters

Name Type Default value Description
$event Event - -

Return values

int

publicgetDateTime()

Event.php : 57
public getDateTime() : DateTimeInterface

Return values

DateTimeInterface

publicgetId()

Event.php : 52
public getId() : string

Return values

string

publicgetName()

Event.php : 65

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

public getName() : string

Return values

string

publicgetType()

Event.php : 47
public getType() : EventTypeInterface

Return values

EventTypeInterface

publicisAfter()

Event.php : 75

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 : 85

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 : 105
protected executeAction(EventActionContext $context) : void

Parameters

Name Type Default value Description
$context EventActionContext - -