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 ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\DomainObjects\Generated;
/**
* THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
* @package HiEvents\DomainObjects\Generated
*/
abstract class AnnouncementDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'announcement';
final public const PLURAL_NAME = 'announcements';
final public const ID = 'id';
final public const TITLE = 'title';
final public const CONTENT = 'content';
final public const STATUS = 'status';
final public const DISPLAY_TYPE = 'display_type';
final public const EMOJI = 'emoji';
final public const TARGET_TYPE = 'target_type';
final public const TARGET_ACCOUNT_IDS = 'target_account_ids';
final public const TARGET_USER_IDS = 'target_user_ids';
final public const CTA_LABEL = 'cta_label';
final public const CTA_URL = 'cta_url';
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 $title;
protected string $content;
protected string $status = 'DRAFT';
protected string $display_type;
protected ?string $emoji = null;
protected string $target_type = 'ALL';
protected array|string|null $target_account_ids = null;
protected array|string|null $target_user_ids = null;
protected ?string $cta_label = null;
protected ?string $cta_url = 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,
'title' => $this->title ?? null,
'content' => $this->content ?? null,
'status' => $this->status ?? null,
'display_type' => $this->display_type ?? null,
'emoji' => $this->emoji ?? null,
'target_type' => $this->target_type ?? null,
'target_account_ids' => $this->target_account_ids ?? null,
'target_user_ids' => $this->target_user_ids ?? null,
'cta_label' => $this->cta_label ?? null,
'cta_url' => $this->cta_url ?? 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 setTitle(string $title): self
{
$this->title = $title;
return $this;
}
public function getTitle(): string
{
return $this->title;
}
public function setContent(string $content): self
{
$this->content = $content;
return $this;
}
public function getContent(): string
{
return $this->content;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
public function getStatus(): string
{
return $this->status;
}
public function setDisplayType(string $display_type): self
{
$this->display_type = $display_type;
return $this;
}
public function getDisplayType(): string
{
return $this->display_type;
}
public function setEmoji(?string $emoji): self
{
$this->emoji = $emoji;
return $this;
}
public function getEmoji(): ?string
{
return $this->emoji;
}
public function setTargetType(string $target_type): self
{
$this->target_type = $target_type;
return $this;
}
public function getTargetType(): string
{
return $this->target_type;
}
public function setTargetAccountIds(array|string|null $target_account_ids): self
{
$this->target_account_ids = $target_account_ids;
return $this;
}
public function getTargetAccountIds(): array|string|null
{
return $this->target_account_ids;
}
public function setTargetUserIds(array|string|null $target_user_ids): self
{
$this->target_user_ids = $target_user_ids;
return $this;
}
public function getTargetUserIds(): array|string|null
{
return $this->target_user_ids;
}
public function setCtaLabel(?string $cta_label): self
{
$this->cta_label = $cta_label;
return $this;
}
public function getCtaLabel(): ?string
{
return $this->cta_label;
}
public function setCtaUrl(?string $cta_url): self
{
$this->cta_url = $cta_url;
return $this;
}
public function getCtaUrl(): ?string
{
return $this->cta_url;
}
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;
}
}