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

2.5 KB
Raw Blame
<?php

namespace HiEvents\DomainObjects\Generated;

use HiEvents\DomainObjects\AbstractDomainObject;

/**
 * THIS FILE IS AUTOGENERATED - DO NOT EDIT IT DIRECTLY.
 */
abstract class EventSpaceDomainObjectAbstract extends AbstractDomainObject
{
    final public const SINGULAR_NAME = 'event_space';

    final public const PLURAL_NAME = 'event_spaces';

    final public const ID = 'id';

    final public const EVENT_ID = 'event_id';

    final public const EVENT_LOCATION_ID = 'event_location_id';

    final public const NAME = 'name';

    final public const CREATED_AT = 'created_at';

    final public const UPDATED_AT = 'updated_at';

    protected int $id;

    protected int $event_id;

    protected ?int $event_location_id = null;

    protected string $name;

    protected ?string $created_at = null;

    protected ?string $updated_at = null;

    public function toArray(): array
    {
        return [
            'id' => $this->id ?? null,
            'event_id' => $this->event_id ?? null,
            'event_location_id' => $this->event_location_id ?? null,
            'name' => $this->name ?? 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 setEventId(int $event_id): self
    {
        $this->event_id = $event_id;

        return $this;
    }

    public function getEventId(): int
    {
        return $this->event_id;
    }

    public function setEventLocationId(?int $event_location_id): self
    {
        $this->event_location_id = $event_location_id;

        return $this;
    }

    public function getEventLocationId(): ?int
    {
        return $this->event_location_id;
    }

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

        return $this;
    }

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

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