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