Total Complexity | 3 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | abstract class TypeDefinitionContext extends DefinitionContext |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected string $name; |
||
27 | |||
28 | /** |
||
29 | * @var array|string[] |
||
30 | */ |
||
31 | protected array $args; |
||
32 | |||
33 | /** |
||
34 | * TypeDefinitionContext constructor. |
||
35 | * |
||
36 | * @param TypeDefinitionNode $ast |
||
37 | */ |
||
38 | public function __construct(TypeDefinitionNode $ast) |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getName(): string |
||
50 | { |
||
51 | return $this->name; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return array|string[] |
||
56 | */ |
||
57 | public function getGenericArguments(): array |
||
60 | } |
||
61 | } |
||
62 |