BookStack/app/Entities/Queries/ProvidesEntityQueries.php
Dan Brown 8e78b4c43e
Queries: Extracted chapter repo queries to class
Updated query classes to align to interface for common aligned
operations.
Extracted repeated string-identifier-based finding from page/chapter
repos to shared higher-level entity queries.
2024-02-05 15:59:20 +00:00

13 lines
256 B
PHP

<?php
namespace BookStack\Entities\Queries;
use BookStack\Entities\Models\Entity;
use Illuminate\Database\Eloquent\Builder;
interface ProvidesEntityQueries
{
public function start(): Builder;
public function findVisibleById(int $id): ?Entity;
}