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: * @param array<string, TemplateTag> $templateTags
14: */
15: public function __construct(
16: private Type $returnType,
17: private bool $isStatic,
18: private array $parameters,
19: private array $templateTags = [],
20: )
21: {
22: }
23:
24: public function getReturnType(): Type
25: {
26: return $this->returnType;
27: }
28:
29: public function isStatic(): bool
30: {
31: return $this->isStatic;
32: }
33:
34: /**
35: * @return array<string, MethodTagParameter>
36: */
37: public function getParameters(): array
38: {
39: return $this->parameters;
40: }
41:
42: /**
43: * @return array<string, TemplateTag>
44: */
45: public function getTemplateTags(): array
46: {
47: return $this->templateTags;
48: }
49:
50: }
51: