public __construct ( string $documentName ) | ||
$documentName | string | The name of the document class the new instance is used for. |
public function __construct($documentName)
{
parent::__construct($documentName);
$this->reflClass = new \ReflectionClass($documentName);
$this->namespace = $this->reflClass->getNamespaceName();
$this->setCollection($this->reflClass->getShortName());
$this->instantiator = new Instantiator();
}