1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\PhpDoc\Tag; |
4: | |
5: | |
6: | final class TypeAliasImportTag |
7: | { |
8: | |
9: | public function __construct(private string $importedAlias, private string $importedFrom, private ?string $importedAs) |
10: | { |
11: | } |
12: | |
13: | public function getImportedAlias(): string |
14: | { |
15: | return $this->importedAlias; |
16: | } |
17: | |
18: | public function getImportedFrom(): string |
19: | { |
20: | return $this->importedFrom; |
21: | } |
22: | |
23: | public function getImportedAs(): ?string |
24: | { |
25: | return $this->importedAs; |
26: | } |
27: | |
28: | } |
29: | |