1 | <?php |
||
21 | final class AddPromiseMethod extends NodeVisitorAbstract |
||
22 | { |
||
23 | /** @var string */ |
||
24 | private $resolverProperty; |
||
25 | |||
26 | /** @var string */ |
||
27 | private $name; |
||
28 | |||
29 | /** @var string|null */ |
||
30 | private $returnType; |
||
31 | |||
32 | /** |
||
33 | * @param string $resolverProperty |
||
34 | * @param string $name |
||
35 | * @param string|null $returnType |
||
36 | */ |
||
37 | public function __construct(string $resolverProperty, string $name, string $returnType = null) |
||
43 | |||
44 | /** |
||
45 | * @param Node $node |
||
46 | * @return int|Node|Node[]|null |
||
47 | */ |
||
48 | public function leaveNode(Node $node) |
||
68 | } |
||
69 |