| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace ApiGen\Info\Traits; |
| 4: | |
| 5: | use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagValueNode; |
| 6: | use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTextNode; |
| 7: | |
| 8: | |
| 9: | trait HasTags |
| 10: | { |
| 11: | /** @var PhpDocTextNode[] indexed by [] */ |
| 12: | public array $description = []; |
| 13: | |
| 14: | /** @var PhpDocTagValueNode[][] indexed by [tagName][] */ |
| 15: | public array $tags = []; |
| 16: | |
| 17: | |
| 18: | public function isDeprecated(): bool |
| 19: | { |
| 20: | return isset($this->tags['deprecated']); |
| 21: | } |
| 22: | |
| 23: | |
| 24: | public function isInternal(): bool |
| 25: | { |
| 26: | return isset($this->tags['internal']); |
| 27: | } |
| 28: | } |
| 29: |