mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 17:57:28 +08:00
8e78b4c43e
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.
13 lines
256 B
PHP
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;
|
|
}
|