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

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class EventSpamCheckDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'event_spam_check';
    final public const PLURAL_NAME = 'event_spam_checks';
    final public const ID = 'id';
    final public const EVENT_ID = 'event_id';
    final public const REVIEWED_BY_USER_ID = 'reviewed_by_user_id';
    final public const STATUS = 'status';
    final public const VERDICT = 'verdict';
    final public const CONTENT_HASH = 'content_hash';
    final public const CHECKED_AT = 'checked_at';
    final public const REVIEWED_AT = 'reviewed_at';
    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 $reviewed_by_user_id = null;
    protected string $status;
    protected array|string|null $verdict = null;
    protected string $content_hash;
    protected string $checked_at;
    protected ?string $reviewed_at = null;
    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,
                    'reviewed_by_user_id' => $this->reviewed_by_user_id ?? null,
                    'status' => $this->status ?? null,
                    'verdict' => $this->verdict ?? null,
                    'content_hash' => $this->content_hash ?? null,
                    'checked_at' => $this->checked_at ?? null,
                    'reviewed_at' => $this->reviewed_at ?? 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 setReviewedByUserId(?int $reviewed_by_user_id): self
    {
        $this->reviewed_by_user_id = $reviewed_by_user_id;
        return $this;
    }

    public function getReviewedByUserId(): ?int
    {
        return $this->reviewed_by_user_id;
    }

    public function setStatus(string $status): self
    {
        $this->status = $status;
        return $this;
    }

    public function getStatus(): string
    {
        return $this->status;
    }

    public function setVerdict(array|string|null $verdict): self
    {
        $this->verdict = $verdict;
        return $this;
    }

    public function getVerdict(): array|string|null
    {
        return $this->verdict;
    }

    public function setContentHash(string $content_hash): self
    {
        $this->content_hash = $content_hash;
        return $this;
    }

    public function getContentHash(): string
    {
        return $this->content_hash;
    }

    public function setCheckedAt(string $checked_at): self
    {
        $this->checked_at = $checked_at;
        return $this;
    }

    public function getCheckedAt(): string
    {
        return $this->checked_at;
    }

    public function setReviewedAt(?string $reviewed_at): self
    {
        $this->reviewed_at = $reviewed_at;
        return $this;
    }

    public function getReviewedAt(): ?string
    {
        return $this->reviewed_at;
    }

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