|
13 | 13 |
|
14 | 14 | namespace phpDocumentor\Reflection\DocBlock; |
15 | 15 |
|
| 16 | +use function trim; |
| 17 | +use function count; |
| 18 | +use function strpos; |
| 19 | +use function sprintf; |
| 20 | +use ReflectionMethod; |
| 21 | +use function get_class; |
| 22 | +use function is_object; |
| 23 | +use function preg_match; |
| 24 | +use ReflectionNamedType; |
| 25 | +use ReflectionParameter; |
| 26 | +use function array_merge; |
| 27 | +use function array_slice; |
| 28 | +use Webmozart\Assert\Assert; |
16 | 29 | use InvalidArgumentException; |
| 30 | +use function array_key_exists; |
| 31 | +use function call_user_func_array; |
| 32 | +use phpDocumentor\Reflection\FqsenResolver; |
| 33 | +use phpDocumentor\Reflection\DocBlock\Tags\Uses; |
| 34 | +use phpDocumentor\Reflection\DocBlock\Tags\Var_; |
| 35 | +use phpDocumentor\Reflection\DocBlock\Tags\Mixin; |
| 36 | +use phpDocumentor\Reflection\DocBlock\Tags\Param; |
| 37 | +use phpDocumentor\Reflection\DocBlock\Tags\Since; |
17 | 38 | use phpDocumentor\Reflection\DocBlock\Tags\Author; |
18 | 39 | use phpDocumentor\Reflection\DocBlock\Tags\Covers; |
19 | | -use phpDocumentor\Reflection\DocBlock\Tags\Deprecated; |
20 | | -use phpDocumentor\Reflection\DocBlock\Tags\Factory\Factory; |
21 | | -use phpDocumentor\Reflection\DocBlock\Tags\Generic; |
22 | | -use phpDocumentor\Reflection\DocBlock\Tags\InvalidTag; |
23 | | -use phpDocumentor\Reflection\DocBlock\Tags\Link as LinkTag; |
24 | 40 | use phpDocumentor\Reflection\DocBlock\Tags\Method; |
25 | | -use phpDocumentor\Reflection\DocBlock\Tags\Param; |
| 41 | +use phpDocumentor\Reflection\DocBlock\Tags\Source; |
| 42 | +use phpDocumentor\Reflection\DocBlock\Tags\Throws; |
| 43 | +use phpDocumentor\Reflection\DocBlock\Tags\Generic; |
| 44 | + |
| 45 | +use phpDocumentor\Reflection\DocBlock\Tags\Return_; |
| 46 | +use phpDocumentor\Reflection\DocBlock\Tags\Version; |
26 | 47 | use phpDocumentor\Reflection\DocBlock\Tags\Property; |
| 48 | +use phpDocumentor\Reflection\DocBlock\Tags\Deprecated; |
| 49 | +use phpDocumentor\Reflection\DocBlock\Tags\InvalidTag; |
27 | 50 | use phpDocumentor\Reflection\DocBlock\Tags\PropertyRead; |
28 | 51 | use phpDocumentor\Reflection\DocBlock\Tags\PropertyWrite; |
29 | | -use phpDocumentor\Reflection\DocBlock\Tags\Return_; |
30 | 52 | use phpDocumentor\Reflection\DocBlock\Tags\See as SeeTag; |
31 | | -use phpDocumentor\Reflection\DocBlock\Tags\Since; |
32 | | -use phpDocumentor\Reflection\DocBlock\Tags\Source; |
33 | | -use phpDocumentor\Reflection\DocBlock\Tags\Throws; |
34 | | -use phpDocumentor\Reflection\DocBlock\Tags\Uses; |
35 | | -use phpDocumentor\Reflection\DocBlock\Tags\Var_; |
36 | | -use phpDocumentor\Reflection\DocBlock\Tags\Version; |
37 | | -use phpDocumentor\Reflection\FqsenResolver; |
38 | 53 | use phpDocumentor\Reflection\Types\Context as TypeContext; |
39 | | -use ReflectionMethod; |
40 | | -use ReflectionNamedType; |
41 | | -use ReflectionParameter; |
42 | | -use Webmozart\Assert\Assert; |
43 | | - |
44 | | -use function array_key_exists; |
45 | | -use function array_merge; |
46 | | -use function array_slice; |
47 | | -use function call_user_func_array; |
48 | | -use function count; |
49 | | -use function get_class; |
50 | | -use function is_object; |
51 | | -use function preg_match; |
52 | | -use function sprintf; |
53 | | -use function strpos; |
54 | | -use function trim; |
| 54 | +use phpDocumentor\Reflection\DocBlock\Tags\Factory\Factory; |
| 55 | +use phpDocumentor\Reflection\DocBlock\Tags\Link as LinkTag; |
| 56 | +use phpDocumentor\Reflection\DocBlock\Tags\TemplateCovariant; |
55 | 57 |
|
56 | 58 | /** |
57 | 59 | * Creates a Tag object given the contents of a tag. |
@@ -80,25 +82,27 @@ final class StandardTagFactory implements TagFactory |
80 | 82 | * FQCN to a class that handles it as an array value. |
81 | 83 | */ |
82 | 84 | private array $tagHandlerMappings = [ |
83 | | - 'author' => Author::class, |
84 | | - 'covers' => Covers::class, |
85 | | - 'deprecated' => Deprecated::class, |
86 | | - // 'example' => '\phpDocumentor\Reflection\DocBlock\Tags\Example', |
87 | | - 'link' => LinkTag::class, |
88 | | - 'method' => Method::class, |
89 | | - 'param' => Param::class, |
90 | | - 'property-read' => PropertyRead::class, |
91 | | - 'property' => Property::class, |
92 | | - 'property-write' => PropertyWrite::class, |
93 | | - 'return' => Return_::class, |
94 | | - 'see' => SeeTag::class, |
95 | | - 'since' => Since::class, |
96 | | - 'source' => Source::class, |
97 | | - 'throw' => Throws::class, |
98 | | - 'throws' => Throws::class, |
99 | | - 'uses' => Uses::class, |
100 | | - 'var' => Var_::class, |
101 | | - 'version' => Version::class, |
| 85 | + 'author' => Author::class, |
| 86 | + 'covers' => Covers::class, |
| 87 | + 'deprecated' => Deprecated::class, |
| 88 | + // 'example' => '\phpDocumentor\Reflection\DocBlock\Tags\Example', |
| 89 | + 'link' => LinkTag::class, |
| 90 | + 'mixin' => Mixin::class, |
| 91 | + 'method' => Method::class, |
| 92 | + 'param' => Param::class, |
| 93 | + 'property-read' => PropertyRead::class, |
| 94 | + 'property' => Property::class, |
| 95 | + 'property-write' => PropertyWrite::class, |
| 96 | + 'return' => Return_::class, |
| 97 | + 'see' => SeeTag::class, |
| 98 | + 'since' => Since::class, |
| 99 | + 'source' => Source::class, |
| 100 | + 'template-covariant' => TemplateCovariant::class, |
| 101 | + 'throw' => Throws::class, |
| 102 | + 'throws' => Throws::class, |
| 103 | + 'uses' => Uses::class, |
| 104 | + 'var' => Var_::class, |
| 105 | + 'version' => Version::class, |
102 | 106 | ]; |
103 | 107 |
|
104 | 108 | /** |
|
0 commit comments