1 | <?php |
||
23 | final class FunctionCode |
||
24 | { |
||
25 | /** @var Container */ |
||
26 | private $container; |
||
27 | |||
28 | /** @var PrivateProperty */ |
||
29 | private $privateProperty; |
||
30 | |||
31 | /** @var AnnotationReader */ |
||
32 | private $reader; |
||
33 | |||
34 | /** @var DependencyCode */ |
||
35 | private $compiler; |
||
36 | |||
37 | public function __construct(Container $container, PrivateProperty $privateProperty, DependencyCode $compiler) |
||
44 | |||
45 | /** |
||
46 | * Return arguments code for "$singleton" and "$prototype" |
||
47 | */ |
||
48 | public function __invoke(Argument $argument, DependencyInterface $dependency): Expr\FuncCall |
||
58 | |||
59 | /** |
||
60 | * Return dependency index argument |
||
61 | * |
||
62 | * [class, method, param] is added if dependency is provider for DI context |
||
63 | * |
||
64 | * @return array<int, Node\Arg|Node\Expr\Array_> |
||
|
|||
65 | */ |
||
66 | private function getInjectionFuncParams(Argument $argument): array |
||
75 | |||
76 | /** |
||
77 | * Return code for provider |
||
78 | * |
||
79 | * "$provider" needs [class, method, parameter] for InjectionPoint (Contextual Dependency Injection) |
||
80 | * |
||
81 | * @return array<int, Expr\Array_|Node\Arg> |
||
82 | */ |
||
83 | private function getInjectionProviderParams(Argument $argument): array |
||
104 | |||
105 | private function setQualifiers(ReflectionMethod $method, ReflectionParameter $param): void |
||
118 | } |
||
119 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.