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

4.6 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class EventSeatMapDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'event_seat_map';
    final public const PLURAL_NAME = 'event_seat_maps';
    final public const ID = 'id';
    final public const EVENT_ID = 'event_id';
    final public const SEAT_MAP_ID = 'seat_map_id';
    final public const SOURCE_VERSION = 'source_version';
    final public const LAYOUT = 'layout';
    final public const VERSION = 'version';
    final public const PREVENT_ORPHAN_SEATS = 'prevent_orphan_seats';
    final public const MAX_SEATS_PER_ORDER = 'max_seats_per_order';
    final public const ALLOW_SEAT_CHANGE = 'allow_seat_change';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';

    protected int $id;
    protected int $event_id;
    protected ?int $seat_map_id = null;
    protected ?int $source_version = null;
    protected array|string $layout;
    protected int $version = 1;
    protected bool $prevent_orphan_seats = false;
    protected ?int $max_seats_per_order = null;
    protected bool $allow_seat_change = false;
    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,
                    'seat_map_id' => $this->seat_map_id ?? null,
                    'source_version' => $this->source_version ?? null,
                    'layout' => $this->layout ?? null,
                    'version' => $this->version ?? null,
                    'prevent_orphan_seats' => $this->prevent_orphan_seats ?? null,
                    'max_seats_per_order' => $this->max_seats_per_order ?? null,
                    'allow_seat_change' => $this->allow_seat_change ?? 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 setSeatMapId(?int $seat_map_id): self
    {
        $this->seat_map_id = $seat_map_id;
        return $this;
    }

    public function getSeatMapId(): ?int
    {
        return $this->seat_map_id;
    }

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

    public function getSourceVersion(): ?int
    {
        return $this->source_version;
    }

    public function setLayout(array|string $layout): self
    {
        $this->layout = $layout;
        return $this;
    }

    public function getLayout(): array|string
    {
        return $this->layout;
    }

    public function setVersion(int $version): self
    {
        $this->version = $version;
        return $this;
    }

    public function getVersion(): int
    {
        return $this->version;
    }

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

    public function getPreventOrphanSeats(): bool
    {
        return $this->prevent_orphan_seats;
    }

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

    public function getMaxSeatsPerOrder(): ?int
    {
        return $this->max_seats_per_order;
    }

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

    public function getAllowSeatChange(): bool
    {
        return $this->allow_seat_change;
    }

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