1<?php
2
3namespace Doctrine\Instantiator;
4
5use Doctrine\Instantiator\Exception\ExceptionInterface;
6
7/**
8 * Instantiator provides utility methods to build objects without invoking their constructors
9 */
10interface InstantiatorInterface
11{
12    /**
13     * @param string $className
14     *
15     * @return object
16     *
17     * @throws ExceptionInterface
18     *
19     * @template T of object
20     * @phpstan-param class-string<T> $className
21     */
22    public function instantiate($className);
23}
24