node = $node; $this->startPointer = $startPointer; $this->endPointer = $endPointer; } public function getNode(): PhpDocTagNode { return $this->node; } public function getName(): string { return $this->node->name; } /** * @return T */ public function getValue(): PhpDocTagValueNode { /** @phpstan-ignore-next-line */ return $this->node->value; } public function getStartPointer(): int { return $this->startPointer; } public function getEndPointer(): int { return $this->endPointer; } public function isInvalid(): bool { return $this->node->value instanceof InvalidTagValueNode; } }