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

4.6 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class OrganizerConfigurationDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'organizer_configuration';
    final public const PLURAL_NAME = 'organizer_configurations';
    final public const ID = 'id';
    final public const NAME = 'name';
    final public const IS_SYSTEM_DEFAULT = 'is_system_default';
    final public const APPLICATION_FEES = 'application_fees';
    final public const BYPASS_APPLICATION_FEES = 'bypass_application_fees';
    final public const LEGACY_ACCOUNT_CONFIGURATION_ID = 'legacy_account_configuration_id';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';
    final public const DELETED_AT = 'deleted_at';
    final public const DEFAULT_FOR_CURRENCY = 'default_for_currency';

    protected int $id;
    protected string $name;
    protected bool $is_system_default = false;
    protected array|string|null $application_fees = null;
    protected bool $bypass_application_fees = false;
    protected ?int $legacy_account_configuration_id = null;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;
    protected ?string $deleted_at = null;
    protected ?string $default_for_currency = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'name' => $this->name ?? null,
                    'is_system_default' => $this->is_system_default ?? null,
                    'application_fees' => $this->application_fees ?? null,
                    'bypass_application_fees' => $this->bypass_application_fees ?? null,
                    'legacy_account_configuration_id' => $this->legacy_account_configuration_id ?? null,
                    'created_at' => $this->created_at ?? null,
                    'updated_at' => $this->updated_at ?? null,
                    'deleted_at' => $this->deleted_at ?? null,
                    'default_for_currency' => $this->default_for_currency ?? null,
                ];
    }

    public function setId(int $id): self
    {
        $this->id = $id;
        return $this;
    }

    public function getId(): int
    {
        return $this->id;
    }

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

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

    public function setIsSystemDefault(bool $is_system_default): self
    {
        $this->is_system_default = $is_system_default;
        return $this;
    }

    public function getIsSystemDefault(): bool
    {
        return $this->is_system_default;
    }

    public function setApplicationFees(array|string|null $application_fees): self
    {
        $this->application_fees = $application_fees;
        return $this;
    }

    public function getApplicationFees(): array|string|null
    {
        return $this->application_fees;
    }

    public function setBypassApplicationFees(bool $bypass_application_fees): self
    {
        $this->bypass_application_fees = $bypass_application_fees;
        return $this;
    }

    public function getBypassApplicationFees(): bool
    {
        return $this->bypass_application_fees;
    }

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

    public function getLegacyAccountConfigurationId(): ?int
    {
        return $this->legacy_account_configuration_id;
    }

    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 setDefaultForCurrency(?string $default_for_currency): self
    {
        $this->default_for_currency = $default_for_currency;
        return $this;
    }

    public function getDefaultForCurrency(): ?string
    {
        return $this->default_for_currency;
    }
}