Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
675 B · 35 lines
PHP
at dev
123456789101112131415161718192021222324252627282930313233343536<?php
namespace SocialDept\AtpSchema\Contracts;
use SocialDept\AtpSchema\Data\LexiconDocument;
interface SchemaRepository{ /** * Find schema by NSID. */ public function find(string $nsid): ?LexiconDocument;
/** * Load schema from multiple sources. */ public function load(string $nsid): LexiconDocument;
/** * Check if schema exists. */ public function exists(string $nsid): bool;
/** * Get all available schema NSIDs. * * @return array<string> */ public function all(): array;
/** * Clear cached schemas. */ public function clearCache(?string $nsid = null): void;}