Skip to content

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 ⭐️

6.3 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class SeatClaimDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'seat_claim';
    final public const PLURAL_NAME = 'seat_claims';
    final public const ID = 'id';
    final public const EVENT_ID = 'event_id';
    final public const EVENT_OCCURRENCE_ID = 'event_occurrence_id';
    final public const ORDER_ID = 'order_id';
    final public const ORDER_ITEM_ID = 'order_item_id';
    final public const ATTENDEE_ID = 'attendee_id';
    final public const PRODUCT_ID = 'product_id';
    final public const PRODUCT_PRICE_ID = 'product_price_id';
    final public const SEAT_UID = 'seat_uid';
    final public const IS_ZONE = 'is_zone';
    final public const BAND_KEY = 'band_key';
    final public const SEAT_LABEL = 'seat_label';
    final public const HELD_BACK = 'held_back';
    final public const BLOCK_REASON = 'block_reason';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';

    protected int $id;
    protected int $event_id;
    protected int $event_occurrence_id;
    protected ?int $order_id = null;
    protected ?int $order_item_id = null;
    protected ?int $attendee_id = null;
    protected ?int $product_id = null;
    protected ?int $product_price_id = null;
    protected string $seat_uid;
    protected bool $is_zone = false;
    protected string $band_key;
    protected string $seat_label;
    protected bool $held_back = false;
    protected ?string $block_reason = null;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'event_id' => $this->event_id ?? null,
                    'event_occurrence_id' => $this->event_occurrence_id ?? null,
                    'order_id' => $this->order_id ?? null,
                    'order_item_id' => $this->order_item_id ?? null,
                    'attendee_id' => $this->attendee_id ?? null,
                    'product_id' => $this->product_id ?? null,
                    'product_price_id' => $this->product_price_id ?? null,
                    'seat_uid' => $this->seat_uid ?? null,
                    'is_zone' => $this->is_zone ?? null,
                    'band_key' => $this->band_key ?? null,
                    'seat_label' => $this->seat_label ?? null,
                    'held_back' => $this->held_back ?? null,
                    'block_reason' => $this->block_reason ?? null,
                    'created_at' => $this->created_at ?? null,
                    'updated_at' => $this->updated_at ?? 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 setEventOccurrenceId(int $event_occurrence_id): self
    {
        $this->event_occurrence_id = $event_occurrence_id;
        return $this;
    }

    public function getEventOccurrenceId(): int
    {
        return $this->event_occurrence_id;
    }

    public function setOrderId(?int $order_id): self
    {
        $this->order_id = $order_id;
        return $this;
    }

    public function getOrderId(): ?int
    {
        return $this->order_id;
    }

    public function setOrderItemId(?int $order_item_id): self
    {
        $this->order_item_id = $order_item_id;
        return $this;
    }

    public function getOrderItemId(): ?int
    {
        return $this->order_item_id;
    }

    public function setAttendeeId(?int $attendee_id): self
    {
        $this->attendee_id = $attendee_id;
        return $this;
    }

    public function getAttendeeId(): ?int
    {
        return $this->attendee_id;
    }

    public function setProductId(?int $product_id): self
    {
        $this->product_id = $product_id;
        return $this;
    }

    public function getProductId(): ?int
    {
        return $this->product_id;
    }

    public function setProductPriceId(?int $product_price_id): self
    {
        $this->product_price_id = $product_price_id;
        return $this;
    }

    public function getProductPriceId(): ?int
    {
        return $this->product_price_id;
    }

    public function setSeatUid(string $seat_uid): self
    {
        $this->seat_uid = $seat_uid;
        return $this;
    }

    public function getSeatUid(): string
    {
        return $this->seat_uid;
    }

    public function setIsZone(bool $is_zone): self
    {
        $this->is_zone = $is_zone;
        return $this;
    }

    public function getIsZone(): bool
    {
        return $this->is_zone;
    }

    public function setBandKey(string $band_key): self
    {
        $this->band_key = $band_key;
        return $this;
    }

    public function getBandKey(): string
    {
        return $this->band_key;
    }

    public function setSeatLabel(string $seat_label): self
    {
        $this->seat_label = $seat_label;
        return $this;
    }

    public function getSeatLabel(): string
    {
        return $this->seat_label;
    }

    public function setHeldBack(bool $held_back): self
    {
        $this->held_back = $held_back;
        return $this;
    }

    public function getHeldBack(): bool
    {
        return $this->held_back;
    }

    public function setBlockReason(?string $block_reason): self
    {
        $this->block_reason = $block_reason;
        return $this;
    }

    public function getBlockReason(): ?string
    {
        return $this->block_reason;
    }

    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;
    }
}