no-framework-tutorial/implementation/18-caching/src/Repository/MarkdownPageRepo.php
2022-05-31 18:50:35 +02:00

15 lines
345 B
PHP

<?php declare(strict_types=1);
namespace Lubian\NoFramework\Repository;
use Lubian\NoFramework\Exception\NotFound;
use Lubian\NoFramework\Model\MarkdownPage;
interface MarkdownPageRepo
{
/** @return MarkdownPage[] */
public function all(): array;
/** @throws NotFound */
public function byName(string $name): MarkdownPage;
}