Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\DomainObjects\Generated;
/**
* THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
* @package HiEvents\DomainObjects\Generated
*/
abstract class EventOccurrenceDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'event_occurrence';
final public const PLURAL_NAME = 'event_occurrences';
final public const ID = 'id';
final public const EVENT_ID = 'event_id';
final public const EVENT_LOCATION_ID = 'event_location_id';
final public const SHORT_ID = 'short_id';
final public const START_DATE = 'start_date';
final public const END_DATE = 'end_date';
final public const STATUS = 'status';
final public const CAPACITY = 'capacity';
final public const USED_CAPACITY = 'used_capacity';
final public const LABEL = 'label';
final public const IS_OVERRIDDEN = 'is_overridden';
final public const CREATED_AT = 'created_at';
final public const UPDATED_AT = 'updated_at';
final public const DELETED_AT = 'deleted_at';
final public const SHOW_AVAILABLE_CAPACITY = 'show_available_capacity';
final public const CANCELLED_ATTENDEES_COUNT = 'cancelled_attendees_count';
protected int $id;
protected int $event_id;
protected ?int $event_location_id = null;
protected string $short_id;
protected string $start_date;
protected ?string $end_date = null;
protected string $status = 'ACTIVE';
protected ?int $capacity = null;
protected int $used_capacity = 0;
protected ?string $label = null;
protected bool $is_overridden = false;
protected ?string $created_at = null;
protected ?string $updated_at = null;
protected ?string $deleted_at = null;
protected ?bool $show_available_capacity = null;
protected ?int $cancelled_attendees_count = null;
public function toArray(): array
{
return [
'id' => $this->id ?? null,
'event_id' => $this->event_id ?? null,
'event_location_id' => $this->event_location_id ?? null,
'short_id' => $this->short_id ?? null,
'start_date' => $this->start_date ?? null,
'end_date' => $this->end_date ?? null,
'status' => $this->status ?? null,
'capacity' => $this->capacity ?? null,
'used_capacity' => $this->used_capacity ?? null,
'label' => $this->label ?? null,
'is_overridden' => $this->is_overridden ?? null,
'created_at' => $this->created_at ?? null,
'updated_at' => $this->updated_at ?? null,
'deleted_at' => $this->deleted_at ?? null,
'show_available_capacity' => $this->show_available_capacity ?? null,
'cancelled_attendees_count' => $this->cancelled_attendees_count ?? null,
];
}
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
public function getId(): int
{
return $this->id;
}
public function setEventId(int $event_id): self
{
$this->event_id = $event_id;
return $this;
}
public function getEventId(): int
{
return $this->event_id;
}
public function setEventLocationId(?int $event_location_id): self
{
$this->event_location_id = $event_location_id;
return $this;
}
public function getEventLocationId(): ?int
{
return $this->event_location_id;
}
public function setShortId(string $short_id): self
{
$this->short_id = $short_id;
return $this;
}
public function getShortId(): string
{
return $this->short_id;
}
public function setStartDate(string $start_date): self
{
$this->start_date = $start_date;
return $this;
}
public function getStartDate(): string
{
return $this->start_date;
}
public function setEndDate(?string $end_date): self
{
$this->end_date = $end_date;
return $this;
}
public function getEndDate(): ?string
{
return $this->end_date;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
public function getStatus(): string
{
return $this->status;
}
public function setCapacity(?int $capacity): self
{
$this->capacity = $capacity;
return $this;
}
public function getCapacity(): ?int
{
return $this->capacity;
}
public function setUsedCapacity(int $used_capacity): self
{
$this->used_capacity = $used_capacity;
return $this;
}
public function getUsedCapacity(): int
{
return $this->used_capacity;
}
public function setLabel(?string $label): self
{
$this->label = $label;
return $this;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setIsOverridden(bool $is_overridden): self
{
$this->is_overridden = $is_overridden;
return $this;
}
public function getIsOverridden(): bool
{
return $this->is_overridden;
}
public function setCreatedAt(?string $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getCreatedAt(): ?string
{
return $this->created_at;
}
public function setUpdatedAt(?string $updated_at): self
{
$this->updated_at = $updated_at;
return $this;
}
public function getUpdatedAt(): ?string
{
return $this->updated_at;
}
public function setDeletedAt(?string $deleted_at): self
{
$this->deleted_at = $deleted_at;
return $this;
}
public function getDeletedAt(): ?string
{
return $this->deleted_at;
}
public function setShowAvailableCapacity(?bool $show_available_capacity): self
{
$this->show_available_capacity = $show_available_capacity;
return $this;
}
public function getShowAvailableCapacity(): ?bool
{
return $this->show_available_capacity;
}
public function setCancelledAttendeesCount(?int $cancelled_attendees_count): self
{
$this->cancelled_attendees_count = $cancelled_attendees_count;
return $this;
}
public function getCancelledAttendeesCount(): ?int
{
return $this->cancelled_attendees_count;
}
}