ParsedDocument.php 477 B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Services\Template;
  3. use App\Services\Template\Contracts\RendererInterface;
  4. use App\Services\Template\Contracts\ParserInterface;
  5. // ================== 数据结构 ==================
  6. class ParsedDocument
  7. {
  8. public string $type = 'document';
  9. public array $content = [];
  10. public array $meta = [];
  11. public function __construct(array $content = [], array $meta = [])
  12. {
  13. $this->content = $content;
  14. $this->meta = $meta;
  15. }
  16. }