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 AccountUserDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
final public const SINGULAR_NAME = 'account_user';
final public const PLURAL_NAME = 'account_users';
final public const ID = 'id';
final public const ACCOUNT_ID = 'account_id';
final public const USER_ID = 'user_id';
final public const INVITED_BY_USER_ID = 'invited_by_user_id';
final public const ROLE = 'role';
final public const CREATED_AT = 'created_at';
final public const DELETED_AT = 'deleted_at';
final public const UPDATED_AT = 'updated_at';
final public const IS_ACCOUNT_OWNER = 'is_account_owner';
final public const LAST_LOGIN_AT = 'last_login_at';
final public const STATUS = 'status';
final public const ACCESS_SCOPE = 'access_scope';
final public const NOTIFY_NEW_ORDERS = 'notify_new_orders';
final public const SSO_ENFORCED = 'sso_enforced';
protected int $id;
protected int $account_id;
protected int $user_id;
protected ?int $invited_by_user_id = null;
protected ?string $role = null;
protected ?string $created_at = 'now()';
protected ?string $deleted_at = null;
protected ?string $updated_at = null;
protected bool $is_account_owner = false;
protected ?string $last_login_at = null;
protected string $status = 'INVITED';
protected string $access_scope = 'ACCOUNT';
protected bool $notify_new_orders = false;
protected bool $sso_enforced = false;
public function toArray(): array
{
return [
'id' => $this->id ?? null,
'account_id' => $this->account_id ?? null,
'user_id' => $this->user_id ?? null,
'invited_by_user_id' => $this->invited_by_user_id ?? null,
'role' => $this->role ?? null,
'created_at' => $this->created_at ?? null,
'deleted_at' => $this->deleted_at ?? null,
'updated_at' => $this->updated_at ?? null,
'is_account_owner' => $this->is_account_owner ?? null,
'last_login_at' => $this->last_login_at ?? null,
'status' => $this->status ?? null,
'access_scope' => $this->access_scope ?? null,
'notify_new_orders' => $this->notify_new_orders ?? null,
'sso_enforced' => $this->sso_enforced ?? null,
];
}
public function setId(int $id): self
{
$this->id = $id;
return $this;
}
public function getId(): int
{
return $this->id;
}
public function setAccountId(int $account_id): self
{
$this->account_id = $account_id;
return $this;
}
public function getAccountId(): int
{
return $this->account_id;
}
public function setUserId(int $user_id): self
{
$this->user_id = $user_id;
return $this;
}
public function getUserId(): int
{
return $this->user_id;
}
public function setInvitedByUserId(?int $invited_by_user_id): self
{
$this->invited_by_user_id = $invited_by_user_id;
return $this;
}
public function getInvitedByUserId(): ?int
{
return $this->invited_by_user_id;
}
public function setRole(?string $role): self
{
$this->role = $role;
return $this;
}
public function getRole(): ?string
{
return $this->role;
}
public function setCreatedAt(?string $created_at): self
{
$this->created_at = $created_at;
return $this;
}
public function getCreatedAt(): ?string
{
return $this->created_at;
}
public function setDeletedAt(?string $deleted_at): self
{
$this->deleted_at = $deleted_at;
return $this;
}
public function getDeletedAt(): ?string
{
return $this->deleted_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 setIsAccountOwner(bool $is_account_owner): self
{
$this->is_account_owner = $is_account_owner;
return $this;
}
public function getIsAccountOwner(): bool
{
return $this->is_account_owner;
}
public function setLastLoginAt(?string $last_login_at): self
{
$this->last_login_at = $last_login_at;
return $this;
}
public function getLastLoginAt(): ?string
{
return $this->last_login_at;
}
public function setStatus(string $status): self
{
$this->status = $status;
return $this;
}
public function getStatus(): string
{
return $this->status;
}
public function setAccessScope(string $access_scope): self
{
$this->access_scope = $access_scope;
return $this;
}
public function getAccessScope(): string
{
return $this->access_scope;
}
public function setNotifyNewOrders(bool $notify_new_orders): self
{
$this->notify_new_orders = $notify_new_orders;
return $this;
}
public function getNotifyNewOrders(): bool
{
return $this->notify_new_orders;
}
public function setSsoEnforced(bool $sso_enforced): self
{
$this->sso_enforced = $sso_enforced;
return $this;
}
public function getSsoEnforced(): bool
{
return $this->sso_enforced;
}
}