1 | <?php |
||
2 | declare(strict_types = 1); |
||
3 | |||
4 | namespace Innmind\Reflection; |
||
5 | |||
6 | use Innmind\Reflection\Exception\InstanciationFailed; |
||
7 | use Innmind\Immutable\{ |
||
8 | Map, |
||
9 | Set, |
||
10 | }; |
||
11 | |||
12 | interface Instanciator |
||
13 | { |
||
14 | /** |
||
15 | * Build a new instance for the given class |
||
16 | * |
||
17 | * @param class-string $class |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
18 | * @param Map<string, mixed> $properties |
||
19 | * |
||
20 | * @throws InstanciationFailed |
||
21 | */ |
||
22 | public function build(string $class, Map $properties): object; |
||
23 | |||
24 | /** |
||
25 | * Return a collection of parameters it can inject for the given class |
||
26 | * |
||
27 | * @param class-string $class |
||
0 ignored issues
–
show
|
|||
28 | * |
||
29 | * @return Set<string> |
||
30 | */ |
||
31 | public function parameters(string $class): Set; |
||
32 | } |
||
33 |