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;

use HiEvents\DomainObjects\AbstractDomainObject;

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

    final public const PLURAL_NAME = 'event_schedule_items';

    final public const ID = 'id';

    final public const EVENT_ID = 'event_id';

    final public const EVENT_SPACE_ID = 'event_space_id';

    final public const TITLE = 'title';

    final public const DESCRIPTION = 'description';

    final public const STARTS_AT = 'starts_at';

    final public const ENDS_AT = 'ends_at';

    final public const CREATED_AT = 'created_at';

    final public const UPDATED_AT = 'updated_at';

    protected int $id;

    protected int $event_id;

    protected ?int $event_space_id = null;

    protected ?string $title = null;

    protected ?string $description = null;

    protected string $starts_at;

    protected string $ends_at;

    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_space_id' => $this->event_space_id ?? null,
            'title' => $this->title ?? null,
            'description' => $this->description ?? null,
            'starts_at' => $this->starts_at ?? null,
            'ends_at' => $this->ends_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 setEventId(int $event_id): self
    {
        $this->event_id = $event_id;

        return $this;
    }

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

    public function setEventSpaceId(?int $event_space_id): self
    {
        $this->event_space_id = $event_space_id;

        return $this;
    }

    public function getEventSpaceId(): ?int
    {
        return $this->event_space_id;
    }

    public function setTitle(?string $title): self
    {
        $this->title = $title;

        return $this;
    }

    public function getTitle(): ?string
    {
        return $this->title;
    }

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

        return $this;
    }

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

    public function setStartsAt(string $starts_at): self
    {
        $this->starts_at = $starts_at;

        return $this;
    }

    public function getStartsAt(): string
    {
        return $this->starts_at;
    }

    public function setEndsAt(string $ends_at): self
    {
        $this->ends_at = $ends_at;

        return $this;
    }

    public function getEndsAt(): string
    {
        return $this->ends_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;
    }
}