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