1 | <?php |
||
21 | final class AddInitMethod extends NodeVisitorAbstract |
||
22 | { |
||
23 | /** @var string */ |
||
24 | private $property; |
||
25 | |||
26 | /** @var string */ |
||
27 | private $type; |
||
28 | |||
29 | /** @var array */ |
||
30 | private $dependencies; |
||
31 | |||
32 | /** @var string */ |
||
33 | private $unsetPropertiesConst; |
||
34 | |||
35 | /** @var string */ |
||
36 | private $initMethod; |
||
37 | |||
38 | /** |
||
39 | * @param string $property |
||
40 | * @param string $propertyType |
||
41 | * @param array $dependencies |
||
42 | * @param string $unsetPropertiesConst |
||
43 | * @param string $initMethod |
||
44 | */ |
||
45 | public function __construct( |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function leaveNode(Node $node) |
||
80 | |||
81 | /** |
||
82 | * @return Node\Stmt\Foreach_ |
||
83 | */ |
||
84 | private function unsetProperties(): Node\Stmt\Foreach_ |
||
92 | |||
93 | /** |
||
94 | * @return Node\Stmt\Expression |
||
95 | */ |
||
96 | private function assignResolverProperty(): Node\Stmt\Expression |
||
103 | |||
104 | /** |
||
105 | * @return array |
||
106 | */ |
||
107 | private function packResolverPropertyArgs(): array |
||
116 | } |
||
117 |