add chapter about data repositories, and start work on perfomance chapter
This commit is contained in:
parent
d7e2c23dcb
commit
f0162805d5
165 changed files with 14028 additions and 2028 deletions
|
@ -0,0 +1,19 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Lubian\NoFramework\Repository;
|
||||
|
||||
use Lubian\NoFramework\Model\MarkdownPage;
|
||||
|
||||
interface MarkdownPageRepo
|
||||
{
|
||||
/**
|
||||
* @return MarkdownPage[]
|
||||
*/
|
||||
public function all(): array;
|
||||
|
||||
public function byId(int $id): MarkdownPage;
|
||||
|
||||
public function byTitle(string $title): MarkdownPage;
|
||||
|
||||
public function save(MarkdownPage $page): MarkdownPage;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue