1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\PhpDoc\Tag;
4:
5: use PHPStan\Type\Type;
6:
7: /**
8: * @api
9: */
10: final class ParamTag implements TypedTag
11: {
12:
13: public function __construct(
14: private Type $type,
15: private bool $isVariadic,
16: )
17: {
18: }
19:
20: public function getType(): Type
21: {
22: return $this->type;
23: }
24:
25: public function isVariadic(): bool
26: {
27: return $this->isVariadic;
28: }
29:
30: public function withType(Type $type): self
31: {
32: return new self($type, $this->isVariadic);
33: }
34:
35: }
36: