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