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

663 B
Raw Blame
<?php

declare(strict_types=1);

namespace Tests\Feature\Repository\Fixtures;

use HiEvents\Repository\Eloquent\BaseRepository;

/**
 * @extends BaseRepository<WidgetDomainObject>
 */
class WidgetRepository extends BaseRepository
{
    protected function getModel(): string
    {
        return WidgetModel::class;
    }

    public function getDomainObject(): string
    {
        return WidgetDomainObject::class;
    }

    public function exposeEagerLoads(): array
    {
        return $this->eagerLoads;
    }

    public function exposeBuilderHasWheres(): bool
    {
        $base = $this->model->getQuery();

        return ! empty($base->wheres);
    }
}