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.2 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class ProductPriceOccurrenceOverrideDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'product_price_occurrence_override';
    final public const PLURAL_NAME = 'product_price_occurrence_overrides';
    final public const ID = 'id';
    final public const EVENT_OCCURRENCE_ID = 'event_occurrence_id';
    final public const PRODUCT_PRICE_ID = 'product_price_id';
    final public const PRICE = 'price';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';
    final public const QUANTITY_AVAILABLE = 'quantity_available';

    protected int $id;
    protected int $event_occurrence_id;
    protected int $product_price_id;
    protected ?float $price = null;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;
    protected ?int $quantity_available = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'event_occurrence_id' => $this->event_occurrence_id ?? null,
                    'product_price_id' => $this->product_price_id ?? null,
                    'price' => $this->price ?? null,
                    'created_at' => $this->created_at ?? null,
                    'updated_at' => $this->updated_at ?? null,
                    'quantity_available' => $this->quantity_available ?? null,
                ];
    }

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

    public function getId(): int
    {
        return $this->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 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 setPrice(?float $price): self
    {
        $this->price = $price;
        return $this;
    }

    public function getPrice(): ?float
    {
        return $this->price;
    }

    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 setQuantityAvailable(?int $quantity_available): self
    {
        $this->quantity_available = $quantity_available;
        return $this;
    }

    public function getQuantityAvailable(): ?int
    {
        return $this->quantity_available;
    }
}