Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
52 | public static function get(string $schema): array |
||
53 | { |
||
54 | return match ($schema) { |
||
55 | PageSchema::class => self::getPageArray(), |
||
56 | BlogPostSchema::class => self::getBlogPostArray(), |
||
57 | DocumentationPageSchema::class => self::getDocumentationPageArray(), |
||
58 | default => throw new \Exception("Schema $schema does not exist."), |
||
59 | }; |
||
62 |