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

3.1 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class EventSeatMapBandProductDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'event_seat_map_band_product';
    final public const PLURAL_NAME = 'event_seat_map_band_products';
    final public const ID = 'id';
    final public const EVENT_SEAT_MAP_ID = 'event_seat_map_id';
    final public const PRODUCT_ID = 'product_id';
    final public const BAND_KEY = 'band_key';
    final public const PRICE_ADJUSTMENT = 'price_adjustment';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';

    protected int $id;
    protected int $event_seat_map_id;
    protected int $product_id;
    protected string $band_key;
    protected int $price_adjustment = 0;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'event_seat_map_id' => $this->event_seat_map_id ?? null,
                    'product_id' => $this->product_id ?? null,
                    'band_key' => $this->band_key ?? null,
                    'price_adjustment' => $this->price_adjustment ?? 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 setEventSeatMapId(int $event_seat_map_id): self
    {
        $this->event_seat_map_id = $event_seat_map_id;
        return $this;
    }

    public function getEventSeatMapId(): int
    {
        return $this->event_seat_map_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 setBandKey(string $band_key): self
    {
        $this->band_key = $band_key;
        return $this;
    }

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

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

    public function getPriceAdjustment(): int
    {
        return $this->price_adjustment;
    }

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