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 ProductAddonDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'product_addon';
final public const PLURAL_NAME = 'product_addons';
final public const ID = 'id';
final public const PRODUCT_ID = 'product_id';
final public const ADDON_PRODUCT_ID = 'addon_product_id';
final public const ORDER = 'order';
final public const CREATED_AT = 'created_at';
final public const UPDATED_AT = 'updated_at';
protected int $id;
protected int $product_id;
protected int $addon_product_id;
protected int $order = 0;
protected ?string $created_at = null;
protected ?string $updated_at = null;
public function toArray(): array
{
return [
'id' => $this->id ?? null,
'product_id' => $this->product_id ?? null,
'addon_product_id' => $this->addon_product_id ?? null,
'order' => $this->order ?? 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 setProductId(int $product_id): self
{
$this->product_id = $product_id;
return $this;
}
public function getProductId(): int
{
return $this->product_id;
}
public function setAddonProductId(int $addon_product_id): self
{
$this->addon_product_id = $addon_product_id;
return $this;
}
public function getAddonProductId(): int
{
return $this->addon_product_id;
}
public function setOrder(int $order): self
{
$this->order = $order;
return $this;
}
public function getOrder(): int
{
return $this->order;
}
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;
}
}