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