class EventDTO (View source)

Data Transfer Object representing an event.

Methods

__construct(string $name, string|null $nameEn = null, string|null $location = null, DateTimeInterface|null $date = null, string|null $url = null, string|null $externalId = null)

EventDTO constructor.

Details

__construct(string $name, string|null $nameEn = null, string|null $location = null, DateTimeInterface|null $date = null, string|null $url = null, string|null $externalId = null)

EventDTO constructor.

Parameters

string $name

The name of the event.

string|null $nameEn

The English name of the event, if available.

string|null $location

The location where the event takes place.

DateTimeInterface|null $date

The date of the event.

string|null $url

The URL to the event's webpage.

string|null $externalId

An optional external identifier for the event, such as an ID from a third-party service.