mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-14 16:58:32 +00:00

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.
12 lines
256 B
PHP
12 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;
|
|
}
|