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

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class AccountMessagingTierDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'account_messaging_tier';
    final public const PLURAL_NAME = 'account_messaging_tiers';
    final public const ID = 'id';
    final public const NAME = 'name';
    final public const MAX_MESSAGES_PER_24H = 'max_messages_per_24h';
    final public const MAX_RECIPIENTS_PER_MESSAGE = 'max_recipients_per_message';
    final public const LINKS_ALLOWED = 'links_allowed';
    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 string $name;
    protected int $max_messages_per_24h;
    protected int $max_recipients_per_message;
    protected bool $links_allowed = false;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;
    protected ?string $deleted_at = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'name' => $this->name ?? null,
                    'max_messages_per_24h' => $this->max_messages_per_24h ?? null,
                    'max_recipients_per_message' => $this->max_recipients_per_message ?? null,
                    'links_allowed' => $this->links_allowed ?? 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 setName(string $name): self
    {
        $this->name = $name;
        return $this;
    }

    public function getName(): string
    {
        return $this->name;
    }

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

    public function getMaxMessagesPer24h(): int
    {
        return $this->max_messages_per_24h;
    }

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

    public function getMaxRecipientsPerMessage(): int
    {
        return $this->max_recipients_per_message;
    }

    public function setLinksAllowed(bool $links_allowed): self
    {
        $this->links_allowed = $links_allowed;
        return $this;
    }

    public function getLinksAllowed(): bool
    {
        return $this->links_allowed;
    }

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