| 1 | <?php |
||
| 15 | class AddResolverProperty extends NodeVisitorAbstract |
||
| 16 | { |
||
| 17 | /** @var string */ |
||
| 18 | private $property; |
||
| 19 | |||
| 20 | /** @var string */ |
||
| 21 | private $type; |
||
| 22 | |||
| 23 | /** @var string */ |
||
| 24 | private $class; |
||
| 25 | |||
| 26 | public function __construct(string $property, string $type, string $class) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function leaveNode(Node $node) |
||
| 44 | |||
| 45 | private function definePlacementID(Node\Stmt\Class_ $node): int |
||
| 55 | |||
| 56 | private function buildProperty(): Node\Stmt\Property |
||
| 64 | } |