InstantiatorInterface.php
Same filename in this branch
Namespace
Doctrine\InstantiatorFile
-
vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ InstantiatorInterface.php
View source
<?php
declare (strict_types=1);
namespace Doctrine\Instantiator;
use Doctrine\Instantiator\Exception\ExceptionInterface;
/**
* Instantiator provides utility methods to build objects without invoking their constructors
*/
interface InstantiatorInterface {
/**
* @phpstan-param class-string<T> $className
*
* @phpstan-return T
*
* @throws ExceptionInterface
*
* @template T of object
*/
public function instantiate(string $className) : object;
}
Interfaces
Title | Deprecated | Summary |
---|---|---|
InstantiatorInterface | Instantiator provides utility methods to build objects without invoking their constructors |