1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\PhpDoc\Tag; |
4: | |
5: | use PHPStan\Type\Type; |
6: | |
7: | /** @api */ |
8: | class MethodTag |
9: | { |
10: | |
11: | /** |
12: | * @param array<string, MethodTagParameter> $parameters |
13: | */ |
14: | public function __construct( |
15: | private Type $returnType, |
16: | private bool $isStatic, |
17: | private array $parameters, |
18: | ) |
19: | { |
20: | } |
21: | |
22: | public function getReturnType(): Type |
23: | { |
24: | return $this->returnType; |
25: | } |
26: | |
27: | public function isStatic(): bool |
28: | { |
29: | return $this->isStatic; |
30: | } |
31: | |
32: | /** |
33: | * @return array<string, MethodTagParameter> |
34: | */ |
35: | public function getParameters(): array |
36: | { |
37: | return $this->parameters; |
38: | } |
39: | |
40: | } |
41: |