Ticket Type
Whenever you’re dealing with a ticket type in your template, you’re working with a TicketType object.
Properties
Type: int|null
The ID of the ticket type.
Type: verbb\events\elements\Event|null
The associated Event.
Type: string|null
The name of the ticket type (e.g., VIP, General Admission).
Type: float|null
The price for tickets of this type.
Type: int|null
The maximum number of tickets of this type that can be sold.
Type: DateTime|null
The date from which this ticket type is available for sale.
Type: DateTime|null
The date until which this ticket type is available for sale.
Methods
Returns: string|null
Returns the URL to edit this ticket type in the control panel.
Returns: verbb\events\elements\TicketCollection
Returns a collection of Ticket objects for this ticket type.
Returns: bool
Returns true if this ticket type is available for sale based on the availableFrom and availableTo dates.
Returns: float|null
Returns the price for this ticket type.