|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace HiEvents\DomainObjects\Generated; |
| 4 | + |
| 5 | +/** |
| 6 | + * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY. |
| 7 | + * @package HiEvents\DomainObjects\Generated |
| 8 | + */ |
| 9 | +abstract class OutgoingMessageDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject |
| 10 | +{ |
| 11 | + final public const SINGULAR_NAME = 'outgoing_message'; |
| 12 | + final public const PLURAL_NAME = 'outgoing_messages'; |
| 13 | + final public const ID = 'id'; |
| 14 | + final public const EVENT_ID = 'event_id'; |
| 15 | + final public const MESSAGE_ID = 'message_id'; |
| 16 | + final public const SUBJECT = 'subject'; |
| 17 | + final public const RECIPIENT = 'recipient'; |
| 18 | + final public const STATUS = 'status'; |
| 19 | + final public const CREATED_AT = 'created_at'; |
| 20 | + final public const UPDATED_AT = 'updated_at'; |
| 21 | + final public const DELETED_AT = 'deleted_at'; |
| 22 | + |
| 23 | + protected int $id; |
| 24 | + protected int $event_id; |
| 25 | + protected int $message_id; |
| 26 | + protected string $subject; |
| 27 | + protected string $recipient; |
| 28 | + protected string $status; |
| 29 | + protected ?string $created_at = null; |
| 30 | + protected ?string $updated_at = null; |
| 31 | + protected ?string $deleted_at = null; |
| 32 | + |
| 33 | + public function toArray(): array |
| 34 | + { |
| 35 | + return [ |
| 36 | + 'id' => $this->id ?? null, |
| 37 | + 'event_id' => $this->event_id ?? null, |
| 38 | + 'message_id' => $this->message_id ?? null, |
| 39 | + 'subject' => $this->subject ?? null, |
| 40 | + 'recipient' => $this->recipient ?? null, |
| 41 | + 'status' => $this->status ?? null, |
| 42 | + 'created_at' => $this->created_at ?? null, |
| 43 | + 'updated_at' => $this->updated_at ?? null, |
| 44 | + 'deleted_at' => $this->deleted_at ?? null, |
| 45 | + ]; |
| 46 | + } |
| 47 | + |
| 48 | + public function setId(int $id): self |
| 49 | + { |
| 50 | + $this->id = $id; |
| 51 | + return $this; |
| 52 | + } |
| 53 | + |
| 54 | + public function getId(): int |
| 55 | + { |
| 56 | + return $this->id; |
| 57 | + } |
| 58 | + |
| 59 | + public function setEventId(int $event_id): self |
| 60 | + { |
| 61 | + $this->event_id = $event_id; |
| 62 | + return $this; |
| 63 | + } |
| 64 | + |
| 65 | + public function getEventId(): int |
| 66 | + { |
| 67 | + return $this->event_id; |
| 68 | + } |
| 69 | + |
| 70 | + public function setMessageId(int $message_id): self |
| 71 | + { |
| 72 | + $this->message_id = $message_id; |
| 73 | + return $this; |
| 74 | + } |
| 75 | + |
| 76 | + public function getMessageId(): int |
| 77 | + { |
| 78 | + return $this->message_id; |
| 79 | + } |
| 80 | + |
| 81 | + public function setSubject(string $subject): self |
| 82 | + { |
| 83 | + $this->subject = $subject; |
| 84 | + return $this; |
| 85 | + } |
| 86 | + |
| 87 | + public function getSubject(): string |
| 88 | + { |
| 89 | + return $this->subject; |
| 90 | + } |
| 91 | + |
| 92 | + public function setRecipient(string $recipient): self |
| 93 | + { |
| 94 | + $this->recipient = $recipient; |
| 95 | + return $this; |
| 96 | + } |
| 97 | + |
| 98 | + public function getRecipient(): string |
| 99 | + { |
| 100 | + return $this->recipient; |
| 101 | + } |
| 102 | + |
| 103 | + public function setStatus(string $status): self |
| 104 | + { |
| 105 | + $this->status = $status; |
| 106 | + return $this; |
| 107 | + } |
| 108 | + |
| 109 | + public function getStatus(): string |
| 110 | + { |
| 111 | + return $this->status; |
| 112 | + } |
| 113 | + |
| 114 | + public function setCreatedAt(?string $created_at): self |
| 115 | + { |
| 116 | + $this->created_at = $created_at; |
| 117 | + return $this; |
| 118 | + } |
| 119 | + |
| 120 | + public function getCreatedAt(): ?string |
| 121 | + { |
| 122 | + return $this->created_at; |
| 123 | + } |
| 124 | + |
| 125 | + public function setUpdatedAt(?string $updated_at): self |
| 126 | + { |
| 127 | + $this->updated_at = $updated_at; |
| 128 | + return $this; |
| 129 | + } |
| 130 | + |
| 131 | + public function getUpdatedAt(): ?string |
| 132 | + { |
| 133 | + return $this->updated_at; |
| 134 | + } |
| 135 | + |
| 136 | + public function setDeletedAt(?string $deleted_at): self |
| 137 | + { |
| 138 | + $this->deleted_at = $deleted_at; |
| 139 | + return $this; |
| 140 | + } |
| 141 | + |
| 142 | + public function getDeletedAt(): ?string |
| 143 | + { |
| 144 | + return $this->deleted_at; |
| 145 | + } |
| 146 | +} |
0 commit comments