public function buildDocument(string $content, array $metadata): Contracts\Document
    {
        $document = $this->documentResolver;
        $document->setContent($content);
        $document->set($metadata);

        return $document;
    }
public function buildDocument(string $content, array $metadata): Contracts\Document
    {
        $document = $this->documentResolver;
        $document->setContent($content);
        $document->set($metadata);

        return $document;
    }
public function buildDocument ( string $ content , array $ metadata ) : Contracts \ Document { $ document = $ this -> documentResolver ; $ document -> setContent ( $ content ) ; $ document -> set ( $ metadata ) ; return $ document ; }
Build a Document from the parsed data.

@param  string  $content
@param  array   $metadata

@return \Kurenai\Contracts\Document
Build a Document from the parsed data .