1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Reflection; |
4: | |
5: | use PHPStan\Type\Type; |
6: | |
7: | /** |
8: | * @api |
9: | */ |
10: | final class AttributeReflection |
11: | { |
12: | |
13: | /** |
14: | * @param array<string, Type> $argumentTypes |
15: | */ |
16: | public function __construct(private string $name, private array $argumentTypes) |
17: | { |
18: | } |
19: | |
20: | public function getName(): string |
21: | { |
22: | return $this->name; |
23: | } |
24: | |
25: | /** |
26: | * @return array<string, Type> |
27: | */ |
28: | public function getArgumentTypes(): array |
29: | { |
30: | return $this->argumentTypes; |
31: | } |
32: | |
33: | } |
34: |