wishthis/vendor/ml/json-ld/DocumentFactoryInterface.php

30 lines
624 B
PHP
Raw Permalink Normal View History

2022-01-21 08:23:52 +00:00
<?php
/*
* (c) Markus Lanthaler <mail@markus-lanthaler.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ML\JsonLD;
/**
* Interface for factories to create DocumentInterface objects
*
* @see DocumentInterface
*
* @author Markus Lanthaler <mail@markus-lanthaler.com>
*/
interface DocumentFactoryInterface
{
/**
* Creates a new document
*
* @param null|string $iri The document's IRI.
*
* @return DocumentInterface The document.
*/
public function createDocument($iri = null);
}