1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\PhpDoc\Tag;
4:
5: use PHPStan\Type\Generic\TemplateTypeVariance;
6: use PHPStan\Type\Type;
7:
8: /** @api */
9: class TemplateTag
10: {
11:
12: public function __construct(private string $name, private Type $bound, private TemplateTypeVariance $variance)
13: {
14: }
15:
16: public function getName(): string
17: {
18: return $this->name;
19: }
20:
21: public function getBound(): Type
22: {
23: return $this->bound;
24: }
25:
26: public function getVariance(): TemplateTypeVariance
27: {
28: return $this->variance;
29: }
30:
31: }
32: