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

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class EmailDeliveryDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'email_delivery';
    final public const PLURAL_NAME = 'email_deliveries';
    final public const ID = 'id';
    final public const CATEGORY = 'category';
    final public const PROVIDER_MESSAGE_ID = 'provider_message_id';
    final public const DELIVERED_AT = 'delivered_at';
    final public const BOUNCED_AT = 'bounced_at';
    final public const BOUNCE_TYPE = 'bounce_type';
    final public const COMPLAINED_AT = 'complained_at';
    final public const FIRST_OPENED_AT = 'first_opened_at';
    final public const FIRST_CLICKED_AT = 'first_clicked_at';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';

    protected int $id;
    protected ?string $category = null;
    protected ?string $provider_message_id = null;
    protected ?string $delivered_at = null;
    protected ?string $bounced_at = null;
    protected ?string $bounce_type = null;
    protected ?string $complained_at = null;
    protected ?string $first_opened_at = null;
    protected ?string $first_clicked_at = null;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'category' => $this->category ?? null,
                    'provider_message_id' => $this->provider_message_id ?? null,
                    'delivered_at' => $this->delivered_at ?? null,
                    'bounced_at' => $this->bounced_at ?? null,
                    'bounce_type' => $this->bounce_type ?? null,
                    'complained_at' => $this->complained_at ?? null,
                    'first_opened_at' => $this->first_opened_at ?? null,
                    'first_clicked_at' => $this->first_clicked_at ?? 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 setCategory(?string $category): self
    {
        $this->category = $category;
        return $this;
    }

    public function getCategory(): ?string
    {
        return $this->category;
    }

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

    public function getProviderMessageId(): ?string
    {
        return $this->provider_message_id;
    }

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

    public function getDeliveredAt(): ?string
    {
        return $this->delivered_at;
    }

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

    public function getBouncedAt(): ?string
    {
        return $this->bounced_at;
    }

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

    public function getBounceType(): ?string
    {
        return $this->bounce_type;
    }

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

    public function getComplainedAt(): ?string
    {
        return $this->complained_at;
    }

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

    public function getFirstOpenedAt(): ?string
    {
        return $this->first_opened_at;
    }

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

    public function getFirstClickedAt(): ?string
    {
        return $this->first_clicked_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;
    }
}