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

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class EventOccurrenceDailyStatisticDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'event_occurrence_daily_statistic';
    final public const PLURAL_NAME = 'event_occurrence_daily_statistics';
    final public const ID = 'id';
    final public const EVENT_ID = 'event_id';
    final public const EVENT_OCCURRENCE_ID = 'event_occurrence_id';
    final public const DATE = 'date';
    final public const PRODUCTS_SOLD = 'products_sold';
    final public const ATTENDEES_REGISTERED = 'attendees_registered';
    final public const SALES_TOTAL_GROSS = 'sales_total_gross';
    final public const SALES_TOTAL_BEFORE_ADDITIONS = 'sales_total_before_additions';
    final public const TOTAL_TAX = 'total_tax';
    final public const TOTAL_FEE = 'total_fee';
    final public const ORDERS_CREATED = 'orders_created';
    final public const ORDERS_CANCELLED = 'orders_cancelled';
    final public const TOTAL_REFUNDED = 'total_refunded';
    final public const VERSION = 'version';
    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;
    protected string $date;
    protected int $products_sold = 0;
    protected int $attendees_registered = 0;
    protected float $sales_total_gross = 0.0;
    protected float $sales_total_before_additions = 0.0;
    protected float $total_tax = 0.0;
    protected float $total_fee = 0.0;
    protected int $orders_created = 0;
    protected int $orders_cancelled = 0;
    protected float $total_refunded = 0.0;
    protected int $version = 0;
    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,
                    'date' => $this->date ?? null,
                    'products_sold' => $this->products_sold ?? null,
                    'attendees_registered' => $this->attendees_registered ?? null,
                    'sales_total_gross' => $this->sales_total_gross ?? null,
                    'sales_total_before_additions' => $this->sales_total_before_additions ?? null,
                    'total_tax' => $this->total_tax ?? null,
                    'total_fee' => $this->total_fee ?? null,
                    'orders_created' => $this->orders_created ?? null,
                    'orders_cancelled' => $this->orders_cancelled ?? null,
                    'total_refunded' => $this->total_refunded ?? null,
                    'version' => $this->version ?? 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 setDate(string $date): self
    {
        $this->date = $date;
        return $this;
    }

    public function getDate(): string
    {
        return $this->date;
    }

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

    public function getProductsSold(): int
    {
        return $this->products_sold;
    }

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

    public function getAttendeesRegistered(): int
    {
        return $this->attendees_registered;
    }

    public function setSalesTotalGross(float $sales_total_gross): self
    {
        $this->sales_total_gross = $sales_total_gross;
        return $this;
    }

    public function getSalesTotalGross(): float
    {
        return $this->sales_total_gross;
    }

    public function setSalesTotalBeforeAdditions(float $sales_total_before_additions): self
    {
        $this->sales_total_before_additions = $sales_total_before_additions;
        return $this;
    }

    public function getSalesTotalBeforeAdditions(): float
    {
        return $this->sales_total_before_additions;
    }

    public function setTotalTax(float $total_tax): self
    {
        $this->total_tax = $total_tax;
        return $this;
    }

    public function getTotalTax(): float
    {
        return $this->total_tax;
    }

    public function setTotalFee(float $total_fee): self
    {
        $this->total_fee = $total_fee;
        return $this;
    }

    public function getTotalFee(): float
    {
        return $this->total_fee;
    }

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

    public function getOrdersCreated(): int
    {
        return $this->orders_created;
    }

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

    public function getOrdersCancelled(): int
    {
        return $this->orders_cancelled;
    }

    public function setTotalRefunded(float $total_refunded): self
    {
        $this->total_refunded = $total_refunded;
        return $this;
    }

    public function getTotalRefunded(): float
    {
        return $this->total_refunded;
    }

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

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

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