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

3.5 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 * @package HiEvents\DomainObjects\Generated
 */
abstract class StripeTerminalReaderDomainObjectAbstract extends \HiEvents\DomainObjects\AbstractDomainObject
{
    final public const SINGULAR_NAME = 'stripe_terminal_reader';
    final public const PLURAL_NAME = 'stripe_terminal_readers';
    final public const ID = 'id';
    final public const ORGANIZER_ID = 'organizer_id';
    final public const ORGANIZER_STRIPE_PLATFORM_ID = 'organizer_stripe_platform_id';
    final public const STRIPE_READER_ID = 'stripe_reader_id';
    final public const LABEL = 'label';
    final public const CREATED_AT = 'created_at';
    final public const UPDATED_AT = 'updated_at';
    final public const DELETED_AT = 'deleted_at';

    protected int $id;
    protected int $organizer_id;
    protected ?int $organizer_stripe_platform_id = null;
    protected string $stripe_reader_id;
    protected string $label;
    protected ?string $created_at = null;
    protected ?string $updated_at = null;
    protected ?string $deleted_at = null;

    public function toArray(): array
    {
        return [
                    'id' => $this->id ?? null,
                    'organizer_id' => $this->organizer_id ?? null,
                    'organizer_stripe_platform_id' => $this->organizer_stripe_platform_id ?? null,
                    'stripe_reader_id' => $this->stripe_reader_id ?? null,
                    'label' => $this->label ?? null,
                    'created_at' => $this->created_at ?? null,
                    'updated_at' => $this->updated_at ?? null,
                    'deleted_at' => $this->deleted_at ?? null,
                ];
    }

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

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

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

    public function getOrganizerId(): int
    {
        return $this->organizer_id;
    }

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

    public function getOrganizerStripePlatformId(): ?int
    {
        return $this->organizer_stripe_platform_id;
    }

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

    public function getStripeReaderId(): string
    {
        return $this->stripe_reader_id;
    }

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

    public function getLabel(): string
    {
        return $this->label;
    }

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