Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Hyde\Markdown\Contracts\FrontMatter; |
6 | |
7 | use Hyde\Markdown\Contracts\FrontMatter\SubSchemas\AuthorSchema; |
8 | use Hyde\Markdown\Contracts\FrontMatter\SubSchemas\FeaturedImageSchema; |
9 | |
10 | /** |
11 | * @see \Hyde\Pages\MarkdownPost |
12 | */ |
13 | interface BlogPostSchema extends PageSchema |
14 | { |
15 | public const BLOG_POST_SCHEMA = [ |
16 | 'title' => 'string', |
17 | 'description' => 'string', |
18 | 'category' => 'string', |
19 | 'date' => 'string', |
20 | 'author' => ['string', AuthorSchema::AUTHOR_SCHEMA], |
21 | 'image' => ['string', FeaturedImageSchema::FEATURED_IMAGE_SCHEMA], |
22 | ]; |
23 | } |