Skip to content

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 ⭐️

6.3 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class OrganizerDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'organizer';
    final public const PLURAL_NAME = 'organizers';
    final public const ID = 'id';
    final public const ACCOUNT_ID = 'account_id';
    final public const ORGANIZER_CONFIGURATION_ID = 'organizer_configuration_id';
    final public const LOCATION_ID = 'location_id';
    final public const NAME = 'name';
    final public const EMAIL = 'email';
    final public const PHONE = 'phone';
    final public const WEBSITE = 'website';
    final public const DESCRIPTION = 'description';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';
    final public const DELETED_AT = 'deleted_at';
    final public const CURRENCY = 'currency';
    final public const TIMEZONE = 'timezone';
    final public const STATUS = 'status';
    final public const STRIPE_TERMINAL_LOCATION_ID = 'stripe_terminal_location_id';

    protected int $id;
    protected int $account_id;
    protected ?int $organizer_configuration_id = null;
    protected ?int $location_id = null;
    protected string $name;
    protected string $email;
    protected ?string $phone = null;
    protected ?string $website = null;
    protected ?string $description = null;
    protected string $created_at;
    protected string $updated_at;
    protected ?string $deleted_at = null;
    protected string $currency = 'USD';
    protected string $timezone;
    protected string $status = 'DRAFT';
    protected ?string $stripe_terminal_location_id = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'account_id' => $this->account_id ?? null,
                    'organizer_configuration_id' => $this->organizer_configuration_id ?? null,
                    'location_id' => $this->location_id ?? null,
                    'name' => $this->name ?? null,
                    'email' => $this->email ?? null,
                    'phone' => $this->phone ?? null,
                    'website' => $this->website ?? null,
                    'description' => $this->description ?? null,
                    'created_at' => $this->created_at ?? null,
                    'updated_at' => $this->updated_at ?? null,
                    'deleted_at' => $this->deleted_at ?? null,
                    'currency' => $this->currency ?? null,
                    'timezone' => $this->timezone ?? null,
                    'status' => $this->status ?? null,
                    'stripe_terminal_location_id' => $this->stripe_terminal_location_id ?? 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 setOrganizerConfigurationId(?int $organizer_configuration_id): self
    {
        $this->organizer_configuration_id = $organizer_configuration_id;
        return $this;
    }

    public function getOrganizerConfigurationId(): ?int
    {
        return $this->organizer_configuration_id;
    }

    public function setLocationId(?int $location_id): self
    {
        $this->location_id = $location_id;
        return $this;
    }

    public function getLocationId(): ?int
    {
        return $this->location_id;
    }

    public function setName(string $name): self
    {
        $this->name = $name;
        return $this;
    }

    public function getName(): string
    {
        return $this->name;
    }

    public function setEmail(string $email): self
    {
        $this->email = $email;
        return $this;
    }

    public function getEmail(): string
    {
        return $this->email;
    }

    public function setPhone(?string $phone): self
    {
        $this->phone = $phone;
        return $this;
    }

    public function getPhone(): ?string
    {
        return $this->phone;
    }

    public function setWebsite(?string $website): self
    {
        $this->website = $website;
        return $this;
    }

    public function getWebsite(): ?string
    {
        return $this->website;
    }

    public function setDescription(?string $description): self
    {
        $this->description = $description;
        return $this;
    }

    public function getDescription(): ?string
    {
        return $this->description;
    }

    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;
    }

    public function setDeletedAt(?string $deleted_at): self
    {
        $this->deleted_at = $deleted_at;
        return $this;
    }

    public function getDeletedAt(): ?string
    {
        return $this->deleted_at;
    }

    public function setCurrency(string $currency): self
    {
        $this->currency = $currency;
        return $this;
    }

    public function getCurrency(): string
    {
        return $this->currency;
    }

    public function setTimezone(string $timezone): self
    {
        $this->timezone = $timezone;
        return $this;
    }

    public function getTimezone(): string
    {
        return $this->timezone;
    }

    public function setStatus(string $status): self
    {
        $this->status = $status;
        return $this;
    }

    public function getStatus(): string
    {
        return $this->status;
    }

    public function setStripeTerminalLocationId(?string $stripe_terminal_location_id): self
    {
        $this->stripe_terminal_location_id = $stripe_terminal_location_id;
        return $this;
    }

    public function getStripeTerminalLocationId(): ?string
    {
        return $this->stripe_terminal_location_id;
    }
}