Renderer.php 304 B

12345678910111213
  1. <?php
  2. namespace App\Services\Markup\Render;
  3. use App\Services\Markup\Ir\Document;
  4. interface Renderer
  5. {
  6. /**
  7. * @return list<array<string, mixed>>|string tree 返回节点数组,其余返回字符串
  8. */
  9. public function document(Document $document, RenderContext $ctx): array|string;
  10. }