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