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

6.5 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

use HiEvents\DomainObjects\AbstractDomainObject;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 */
abstract class ImageDomainObjectAbstract extends AbstractDomainObject
{
    final public const SINGULAR_NAME = 'image';

    final public const PLURAL_NAME = 'images';

    final public const ID = 'id';

    final public const ACCOUNT_ID = 'account_id';

    final public const ENTITY_ID = 'entity_id';

    final public const ENTITY_TYPE = 'entity_type';

    final public const TYPE = 'type';

    final public const FILENAME = 'filename';

    final public const DISK = 'disk';

    final public const PATH = 'path';

    final public const SIZE = 'size';

    final public const MIME_TYPE = 'mime_type';

    final public const CREATED_AT = 'created_at';

    final public const UPDATED_AT = 'updated_at';

    final public const DELETED_AT = 'deleted_at';

    final public const WIDTH = 'width';

    final public const HEIGHT = 'height';

    final public const AVG_COLOUR = 'avg_colour';

    final public const LQIP_BASE64 = 'lqip_base64';

    final public const SORT_ORDER = 'sort_order';

    protected int $id;

    protected ?int $account_id = null;

    protected ?int $entity_id = null;

    protected ?string $entity_type = null;

    protected ?string $type = null;

    protected ?string $filename = null;

    protected ?string $disk = null;

    protected ?string $path = null;

    protected ?int $size = null;

    protected ?string $mime_type = null;

    protected ?string $created_at = 'CURRENT_TIMESTAMP';

    protected ?string $updated_at = 'CURRENT_TIMESTAMP';

    protected ?string $deleted_at = null;

    protected ?int $width = null;

    protected ?int $height = null;

    protected ?string $avg_colour = null;

    protected ?string $lqip_base64 = null;

    protected ?int $sort_order = null;

    public function toArray(): array
    {
        return [
            'id' => $this->id ?? null,
            'account_id' => $this->account_id ?? null,
            'entity_id' => $this->entity_id ?? null,
            'entity_type' => $this->entity_type ?? null,
            'type' => $this->type ?? null,
            'filename' => $this->filename ?? null,
            'disk' => $this->disk ?? null,
            'path' => $this->path ?? null,
            'size' => $this->size ?? null,
            'mime_type' => $this->mime_type ?? null,
            'created_at' => $this->created_at ?? null,
            'updated_at' => $this->updated_at ?? null,
            'deleted_at' => $this->deleted_at ?? null,
            'width' => $this->width ?? null,
            'height' => $this->height ?? null,
            'avg_colour' => $this->avg_colour ?? null,
            'lqip_base64' => $this->lqip_base64 ?? null,
            'sort_order' => $this->sort_order ?? null,
        ];
    }

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

        return $this;
    }

    public function getId(): int
    {
        return $this->id;
    }

    public function setAccountId(?int $account_id): self
    {
        $this->account_id = $account_id;

        return $this;
    }

    public function getAccountId(): ?int
    {
        return $this->account_id;
    }

    public function setEntityId(?int $entity_id): self
    {
        $this->entity_id = $entity_id;

        return $this;
    }

    public function getEntityId(): ?int
    {
        return $this->entity_id;
    }

    public function setEntityType(?string $entity_type): self
    {
        $this->entity_type = $entity_type;

        return $this;
    }

    public function getEntityType(): ?string
    {
        return $this->entity_type;
    }

    public function setType(?string $type): self
    {
        $this->type = $type;

        return $this;
    }

    public function getType(): ?string
    {
        return $this->type;
    }

    public function setFilename(?string $filename): self
    {
        $this->filename = $filename;

        return $this;
    }

    public function getFilename(): ?string
    {
        return $this->filename;
    }

    public function setDisk(?string $disk): self
    {
        $this->disk = $disk;

        return $this;
    }

    public function getDisk(): ?string
    {
        return $this->disk;
    }

    public function setPath(?string $path): self
    {
        $this->path = $path;

        return $this;
    }

    public function getPath(): ?string
    {
        return $this->path;
    }

    public function setSize(?int $size): self
    {
        $this->size = $size;

        return $this;
    }

    public function getSize(): ?int
    {
        return $this->size;
    }

    public function setMimeType(?string $mime_type): self
    {
        $this->mime_type = $mime_type;

        return $this;
    }

    public function getMimeType(): ?string
    {
        return $this->mime_type;
    }

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

    public function setWidth(?int $width): self
    {
        $this->width = $width;

        return $this;
    }

    public function getWidth(): ?int
    {
        return $this->width;
    }

    public function setHeight(?int $height): self
    {
        $this->height = $height;

        return $this;
    }

    public function getHeight(): ?int
    {
        return $this->height;
    }

    public function setAvgColour(?string $avg_colour): self
    {
        $this->avg_colour = $avg_colour;

        return $this;
    }

    public function getAvgColour(): ?string
    {
        return $this->avg_colour;
    }

    public function setLqipBase64(?string $lqip_base64): self
    {
        $this->lqip_base64 = $lqip_base64;

        return $this;
    }

    public function getLqipBase64(): ?string
    {
        return $this->lqip_base64;
    }

    public function setSortOrder(?int $sort_order): self
    {
        $this->sort_order = $sort_order;

        return $this;
    }

    public function getSortOrder(): ?int
    {
        return $this->sort_order;
    }
}