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

7.0 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class BoxOfficeDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'box_office';
    final public const PLURAL_NAME = 'box_offices';
    final public const ID = 'id';
    final public const EVENT_ID = 'event_id';
    final public const EVENT_OCCURRENCE_ID = 'event_occurrence_id';
    final public const CHECK_IN_LIST_ID = 'check_in_list_id';
    final public const SHORT_ID = 'short_id';
    final public const NAME = 'name';
    final public const DESCRIPTION = 'description';
    final public const PIN_HASH = 'pin_hash';
    final public const ALLOW_PRICE_OVERRIDE = 'allow_price_override';
    final public const ALLOW_DISCOUNTS = 'allow_discounts';
    final public const COLLECT_ORDER_QUESTIONS = 'collect_order_questions';
    final public const IS_SYSTEM_DEFAULT = 'is_system_default';
    final public const ACTIVATES_AT = 'activates_at';
    final public const EXPIRES_AT = 'expires_at';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';
    final public const DELETED_AT = 'deleted_at';

    protected int $id;
    protected int $event_id;
    protected ?int $event_occurrence_id = null;
    protected ?int $check_in_list_id = null;
    protected string $short_id;
    protected string $name;
    protected ?string $description = null;
    protected ?string $pin_hash = null;
    protected bool $allow_price_override = false;
    protected bool $allow_discounts = true;
    protected bool $collect_order_questions = false;
    protected bool $is_system_default = false;
    protected ?string $activates_at = null;
    protected ?string $expires_at = null;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;
    protected ?string $deleted_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,
                    'check_in_list_id' => $this->check_in_list_id ?? null,
                    'short_id' => $this->short_id ?? null,
                    'name' => $this->name ?? null,
                    'description' => $this->description ?? null,
                    'pin_hash' => $this->pin_hash ?? null,
                    'allow_price_override' => $this->allow_price_override ?? null,
                    'allow_discounts' => $this->allow_discounts ?? null,
                    'collect_order_questions' => $this->collect_order_questions ?? null,
                    'is_system_default' => $this->is_system_default ?? null,
                    'activates_at' => $this->activates_at ?? null,
                    'expires_at' => $this->expires_at ?? null,
                    'created_at' => $this->created_at ?? null,
                    'updated_at' => $this->updated_at ?? null,
                    'deleted_at' => $this->deleted_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 setCheckInListId(?int $check_in_list_id): self
    {
        $this->check_in_list_id = $check_in_list_id;
        return $this;
    }

    public function getCheckInListId(): ?int
    {
        return $this->check_in_list_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 setName(string $name): self
    {
        $this->name = $name;
        return $this;
    }

    public function getName(): string
    {
        return $this->name;
    }

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

    public function getDescription(): ?string
    {
        return $this->description;
    }

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

    public function getPinHash(): ?string
    {
        return $this->pin_hash;
    }

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

    public function getAllowPriceOverride(): bool
    {
        return $this->allow_price_override;
    }

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

    public function getAllowDiscounts(): bool
    {
        return $this->allow_discounts;
    }

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

    public function getCollectOrderQuestions(): bool
    {
        return $this->collect_order_questions;
    }

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

    public function getIsSystemDefault(): bool
    {
        return $this->is_system_default;
    }

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

    public function getActivatesAt(): ?string
    {
        return $this->activates_at;
    }

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

    public function getExpiresAt(): ?string
    {
        return $this->expires_at;
    }

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