1 | <?php |
||
12 | class Factory implements PromiseFactoryInterface |
||
13 | { |
||
14 | /** @var ProxyPrinter */ |
||
15 | private $creator; |
||
16 | |||
17 | /** @var MaterializerInterface */ |
||
18 | private $materializer; |
||
19 | |||
20 | /** @var NamingInterface */ |
||
21 | private $naming; |
||
22 | |||
23 | public function __construct(ProxyPrinter $creator, MaterializerInterface $materializer, ?NamingInterface $naming) |
||
29 | |||
30 | public function promise(ORMInterface $orm, string $role, array $scope): ?ReferenceInterface |
||
44 | |||
45 | private function instantiate(ORMInterface $orm, string $role, array $scope, string $className): PromiseInterface |
||
49 | } |