Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
804 B · 33 lines
PHP
at dev
12345678910111213141516171819202122232425262728293031323334<?php
namespace SocialDept\AtpSchema\Contracts;
use SocialDept\AtpSchema\Data\LexiconDocument;
interface DataGenerator{ /** * Generate PHP class files from Lexicon definition. */ public function generate(LexiconDocument $schema): string;
/** * Generate and write class file to disk. */ public function generateAndSave(LexiconDocument $schema, string $outputPath): string;
/** * Generate class content without writing to disk. */ public function preview(LexiconDocument $schema): string;
/** * Set the base namespace for generated classes. */ public function setBaseNamespace(string $namespace): void;
/** * Set the output path for generated classes. */ public function setOutputPath(string $path): void;}