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

namespace HiEvents\DomainObjects\Generated;

use HiEvents\DomainObjects\AbstractDomainObject;

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

    final public const PLURAL_NAME = 'lifecycle_email_templates';

    final public const ID = 'id';

    final public const NUDGE_TYPE = 'nudge_type';

    final public const SUBJECT = 'subject';

    final public const BODY = 'body';

    final public const CTA_LABEL = 'cta_label';

    final public const ENABLED_AT = 'enabled_at';

    final public const CREATED_AT = 'created_at';

    final public const UPDATED_AT = 'updated_at';

    protected int $id;

    protected string $nudge_type;

    protected string $subject;

    protected string $body;

    protected string $cta_label;

    protected ?string $enabled_at = null;

    protected ?string $created_at = null;

    protected ?string $updated_at = null;

    public function toArray(): array
    {
        return [
            'id' => $this->id ?? null,
            'nudge_type' => $this->nudge_type ?? null,
            'subject' => $this->subject ?? null,
            'body' => $this->body ?? null,
            'cta_label' => $this->cta_label ?? null,
            'enabled_at' => $this->enabled_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 setNudgeType(string $nudge_type): self
    {
        $this->nudge_type = $nudge_type;

        return $this;
    }

    public function getNudgeType(): string
    {
        return $this->nudge_type;
    }

    public function setSubject(string $subject): self
    {
        $this->subject = $subject;

        return $this;
    }

    public function getSubject(): string
    {
        return $this->subject;
    }

    public function setBody(string $body): self
    {
        $this->body = $body;

        return $this;
    }

    public function getBody(): string
    {
        return $this->body;
    }

    public function setCtaLabel(string $cta_label): self
    {
        $this->cta_label = $cta_label;

        return $this;
    }

    public function getCtaLabel(): string
    {
        return $this->cta_label;
    }

    public function setEnabledAt(?string $enabled_at): self
    {
        $this->enabled_at = $enabled_at;

        return $this;
    }

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