1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Reflection; |
4: | |
5: | use PHPStan\Type\Generic\TemplateTypeMap; |
6: | use PHPStan\Type\MixedType; |
7: | use PHPStan\Type\Type; |
8: | |
9: | |
10: | class TrivialParametersAcceptor implements ParametersAcceptor |
11: | { |
12: | |
13: | |
14: | public function __construct() |
15: | { |
16: | } |
17: | |
18: | public function getTemplateTypeMap(): TemplateTypeMap |
19: | { |
20: | return TemplateTypeMap::createEmpty(); |
21: | } |
22: | |
23: | public function getResolvedTemplateTypeMap(): TemplateTypeMap |
24: | { |
25: | return TemplateTypeMap::createEmpty(); |
26: | } |
27: | |
28: | |
29: | |
30: | |
31: | public function getParameters(): array |
32: | { |
33: | return []; |
34: | } |
35: | |
36: | public function isVariadic(): bool |
37: | { |
38: | return true; |
39: | } |
40: | |
41: | public function getReturnType(): Type |
42: | { |
43: | return new MixedType(); |
44: | } |
45: | |
46: | } |
47: | |