|
| 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 OrderAuditLogDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject |
| 10 | +{ |
| 11 | + final public const SINGULAR_NAME = 'order_audit_log'; |
| 12 | + final public const PLURAL_NAME = 'order_audit_logs'; |
| 13 | + final public const ID = 'id'; |
| 14 | + final public const EVENT_ID = 'event_id'; |
| 15 | + final public const ORDER_ID = 'order_id'; |
| 16 | + final public const ATTENDEE_ID = 'attendee_id'; |
| 17 | + final public const ACTION = 'action'; |
| 18 | + final public const OLD_VALUES = 'old_values'; |
| 19 | + final public const NEW_VALUES = 'new_values'; |
| 20 | + final public const CHANGED_FIELDS = 'changed_fields'; |
| 21 | + final public const IP_ADDRESS = 'ip_address'; |
| 22 | + final public const USER_AGENT = 'user_agent'; |
| 23 | + final public const CREATED_AT = 'created_at'; |
| 24 | + final public const UPDATED_AT = 'updated_at'; |
| 25 | + |
| 26 | + protected int $id; |
| 27 | + protected int $event_id; |
| 28 | + protected int $order_id; |
| 29 | + protected ?int $attendee_id = null; |
| 30 | + protected string $action; |
| 31 | + protected array|string|null $old_values = null; |
| 32 | + protected array|string|null $new_values = null; |
| 33 | + protected ?string $changed_fields = null; |
| 34 | + protected ?string $ip_address = null; |
| 35 | + protected ?string $user_agent = null; |
| 36 | + protected ?string $created_at = null; |
| 37 | + protected ?string $updated_at = null; |
| 38 | + |
| 39 | + public function toArray(): array |
| 40 | + { |
| 41 | + return [ |
| 42 | + 'id' => $this->id ?? null, |
| 43 | + 'event_id' => $this->event_id ?? null, |
| 44 | + 'order_id' => $this->order_id ?? null, |
| 45 | + 'attendee_id' => $this->attendee_id ?? null, |
| 46 | + 'action' => $this->action ?? null, |
| 47 | + 'old_values' => $this->old_values ?? null, |
| 48 | + 'new_values' => $this->new_values ?? null, |
| 49 | + 'changed_fields' => $this->changed_fields ?? null, |
| 50 | + 'ip_address' => $this->ip_address ?? null, |
| 51 | + 'user_agent' => $this->user_agent ?? null, |
| 52 | + 'created_at' => $this->created_at ?? null, |
| 53 | + 'updated_at' => $this->updated_at ?? null, |
| 54 | + ]; |
| 55 | + } |
| 56 | + |
| 57 | + public function setId(int $id): self |
| 58 | + { |
| 59 | + $this->id = $id; |
| 60 | + return $this; |
| 61 | + } |
| 62 | + |
| 63 | + public function getId(): int |
| 64 | + { |
| 65 | + return $this->id; |
| 66 | + } |
| 67 | + |
| 68 | + public function setEventId(int $event_id): self |
| 69 | + { |
| 70 | + $this->event_id = $event_id; |
| 71 | + return $this; |
| 72 | + } |
| 73 | + |
| 74 | + public function getEventId(): int |
| 75 | + { |
| 76 | + return $this->event_id; |
| 77 | + } |
| 78 | + |
| 79 | + public function setOrderId(int $order_id): self |
| 80 | + { |
| 81 | + $this->order_id = $order_id; |
| 82 | + return $this; |
| 83 | + } |
| 84 | + |
| 85 | + public function getOrderId(): int |
| 86 | + { |
| 87 | + return $this->order_id; |
| 88 | + } |
| 89 | + |
| 90 | + public function setAttendeeId(?int $attendee_id): self |
| 91 | + { |
| 92 | + $this->attendee_id = $attendee_id; |
| 93 | + return $this; |
| 94 | + } |
| 95 | + |
| 96 | + public function getAttendeeId(): ?int |
| 97 | + { |
| 98 | + return $this->attendee_id; |
| 99 | + } |
| 100 | + |
| 101 | + public function setAction(string $action): self |
| 102 | + { |
| 103 | + $this->action = $action; |
| 104 | + return $this; |
| 105 | + } |
| 106 | + |
| 107 | + public function getAction(): string |
| 108 | + { |
| 109 | + return $this->action; |
| 110 | + } |
| 111 | + |
| 112 | + public function setOldValues(array|string|null $old_values): self |
| 113 | + { |
| 114 | + $this->old_values = $old_values; |
| 115 | + return $this; |
| 116 | + } |
| 117 | + |
| 118 | + public function getOldValues(): array|string|null |
| 119 | + { |
| 120 | + return $this->old_values; |
| 121 | + } |
| 122 | + |
| 123 | + public function setNewValues(array|string|null $new_values): self |
| 124 | + { |
| 125 | + $this->new_values = $new_values; |
| 126 | + return $this; |
| 127 | + } |
| 128 | + |
| 129 | + public function getNewValues(): array|string|null |
| 130 | + { |
| 131 | + return $this->new_values; |
| 132 | + } |
| 133 | + |
| 134 | + public function setChangedFields(?string $changed_fields): self |
| 135 | + { |
| 136 | + $this->changed_fields = $changed_fields; |
| 137 | + return $this; |
| 138 | + } |
| 139 | + |
| 140 | + public function getChangedFields(): ?string |
| 141 | + { |
| 142 | + return $this->changed_fields; |
| 143 | + } |
| 144 | + |
| 145 | + public function setIpAddress(?string $ip_address): self |
| 146 | + { |
| 147 | + $this->ip_address = $ip_address; |
| 148 | + return $this; |
| 149 | + } |
| 150 | + |
| 151 | + public function getIpAddress(): ?string |
| 152 | + { |
| 153 | + return $this->ip_address; |
| 154 | + } |
| 155 | + |
| 156 | + public function setUserAgent(?string $user_agent): self |
| 157 | + { |
| 158 | + $this->user_agent = $user_agent; |
| 159 | + return $this; |
| 160 | + } |
| 161 | + |
| 162 | + public function getUserAgent(): ?string |
| 163 | + { |
| 164 | + return $this->user_agent; |
| 165 | + } |
| 166 | + |
| 167 | + public function setCreatedAt(?string $created_at): self |
| 168 | + { |
| 169 | + $this->created_at = $created_at; |
| 170 | + return $this; |
| 171 | + } |
| 172 | + |
| 173 | + public function getCreatedAt(): ?string |
| 174 | + { |
| 175 | + return $this->created_at; |
| 176 | + } |
| 177 | + |
| 178 | + public function setUpdatedAt(?string $updated_at): self |
| 179 | + { |
| 180 | + $this->updated_at = $updated_at; |
| 181 | + return $this; |
| 182 | + } |
| 183 | + |
| 184 | + public function getUpdatedAt(): ?string |
| 185 | + { |
| 186 | + return $this->updated_at; |
| 187 | + } |
| 188 | +} |
0 commit comments