| 1 | <?php |
||
| 19 | class NullObjectFactory extends AbstractBaseFactory |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var \ProxyManager\ProxyGenerator\NullObjectGenerator|null |
||
| 23 | */ |
||
| 24 | private $generator; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param object|string $instanceOrClassName the object to be wrapped or interface to transform to null object |
||
| 28 | * |
||
| 29 | * @throws InvalidSignatureException |
||
| 30 | * @throws MissingSignatureException |
||
| 31 | * @throws \OutOfBoundsException |
||
| 32 | */ |
||
| 33 | 2 | public function createProxy($instanceOrClassName) : NullObjectInterface |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritDoc} |
||
| 43 | */ |
||
| 44 | 1 | protected function getGenerator() : ProxyGeneratorInterface |
|
| 48 | } |
||
| 49 |