| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 12 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class Schemas |
||
| 11 | { |
||
| 12 | public static function all(): array |
||
| 13 | { |
||
| 14 | return [ |
||
| 15 | 'PageSchema' => self::get(PageSchema::class), |
||
| 16 | 'BlogPostSchema' => self::get(BlogPostSchema::class), |
||
| 17 | 'DocumentationPageSchema' => self::get(DocumentationPageSchema::class), |
||
| 18 | ]; |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function getPageArray(): array |
||
| 27 | ]; |
||
| 28 | } |
||
| 29 | |||
| 30 | public static function getBlogPostArray(): array |
||
| 31 | { |
||
| 32 | return [ |
||
| 33 | 'title' => 'string', |
||
| 34 | 'description' => 'string', |
||
| 35 | 'category' => 'string', |
||
| 36 | 'date' => 'string', |
||
| 37 | 'author' => 'string|array', |
||
| 38 | 'image' => 'string|array', |
||
| 39 | ]; |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function getDocumentationPageArray(): array |
||
| 43 | { |
||
| 44 | return [ |
||
| 45 | 'category' => 'string', |
||
| 46 | 'label' => 'string', |
||
| 47 | 'hidden' => 'bool', |
||
| 48 | 'priority' => 'int', |
||
| 49 | ]; |
||
| 50 | } |
||
| 51 | |||
| 52 | public static function get(string $schema): array |
||
| 59 | }; |
||
| 60 | } |
||
| 61 | } |
||
| 62 |