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;
use HiEvents\DomainObjects\AbstractDomainObject;
/**
* THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
*/
abstract class UserTrustedDeviceDomainObjectAbstract extends AbstractDomainObject
{
final public const SINGULAR_NAME = 'user_trusted_device';
final public const PLURAL_NAME = 'user_trusted_devices';
final public const ID = 'id';
final public const USER_ID = 'user_id';
final public const TOKEN_HASH = 'token_hash';
final public const USER_AGENT = 'user_agent';
final public const IP_ADDRESS = 'ip_address';
final public const LAST_USED_AT = 'last_used_at';
final public const EXPIRES_AT = 'expires_at';
final public const CREATED_AT = 'created_at';
final public const UPDATED_AT = 'updated_at';
protected int $id;
protected int $user_id;
protected string $token_hash;
protected ?string $user_agent = null;
protected ?string $ip_address = null;
protected ?string $last_used_at = null;
protected string $expires_at;
protected ?string $created_at = null;
protected ?string $updated_at = null;
public function toArray(): array
{
return [
'id' => $this->id ?? null,
'user_id' => $this->user_id ?? null,
'token_hash' => $this->token_hash ?? null,
'user_agent' => $this->user_agent ?? null,
'ip_address' => $this->ip_address ?? null,
'last_used_at' => $this->last_used_at ?? null,
'expires_at' => $this->expires_at ?? 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 setUserId(int $user_id): self
{
$this->user_id = $user_id;
return $this;
}
public function getUserId(): int
{
return $this->user_id;
}
public function setTokenHash(string $token_hash): self
{
$this->token_hash = $token_hash;
return $this;
}
public function getTokenHash(): string
{
return $this->token_hash;
}
public function setUserAgent(?string $user_agent): self
{
$this->user_agent = $user_agent;
return $this;
}
public function getUserAgent(): ?string
{
return $this->user_agent;
}
public function setIpAddress(?string $ip_address): self
{
$this->ip_address = $ip_address;
return $this;
}
public function getIpAddress(): ?string
{
return $this->ip_address;
}
public function setLastUsedAt(?string $last_used_at): self
{
$this->last_used_at = $last_used_at;
return $this;
}
public function getLastUsedAt(): ?string
{
return $this->last_used_at;
}
public function setExpiresAt(string $expires_at): self
{
$this->expires_at = $expires_at;
return $this;
}
public function getExpiresAt(): string
{
return $this->expires_at;
}
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;
}
}