@@ -13,7 +13,6 @@ |
||
| 13 | 13 | namespace phpDocumentor\Reflection\DocBlock\Tags; |
| 14 | 14 | |
| 15 | 15 | use phpDocumentor\Reflection\DocBlock\Description; |
| 16 | -use phpDocumentor\Reflection\DocBlock\Tag; |
|
| 17 | 16 | use Webmozart\Assert\Assert; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -43,6 +43,9 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | private $lineCount; |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param integer|null $lineCount |
|
| 48 | + */ |
|
| 46 | 49 | public function __construct(string $filePath, bool $isURI, int $startingLine, $lineCount, $description) |
| 47 | 50 | { |
| 48 | 51 | Assert::notEmpty($filePath); |
@@ -13,8 +13,6 @@ |
||
| 13 | 13 | namespace phpDocumentor\Reflection; |
| 14 | 14 | |
| 15 | 15 | use Mockery as m; |
| 16 | -use phpDocumentor\Reflection\DocBlock\Description; |
|
| 17 | -use phpDocumentor\Reflection\DocBlock\Tag; |
|
| 18 | 16 | use PHPUnit\Framework\TestCase; |
| 19 | 17 | |
| 20 | 18 | /** |
@@ -104,6 +104,7 @@ |
||
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * {@inheritDoc} |
| 107 | + * @param TypeContext $context |
|
| 107 | 108 | */ |
| 108 | 109 | public function create(string $tagLine, ?TypeContext $context = null): ?Tag |
| 109 | 110 | { |
@@ -63,6 +63,9 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * {@inheritdoc} |
| 66 | + * @param TypeResolver $typeResolver |
|
| 67 | + * @param \Mockery\MockInterface $descriptionFactory |
|
| 68 | + * @param TypeContext $context |
|
| 66 | 69 | */ |
| 67 | 70 | public static function create( |
| 68 | 71 | string $body, |
@@ -227,6 +230,9 @@ discard block |
||
| 227 | 230 | return $arguments; |
| 228 | 231 | } |
| 229 | 232 | |
| 233 | + /** |
|
| 234 | + * @return string |
|
| 235 | + */ |
|
| 230 | 236 | private static function stripRestArg($argument) |
| 231 | 237 | { |
| 232 | 238 | if (strpos($argument, '...') === 0) { |
@@ -61,6 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * @param object|string $docblock A string containing the DocBlock to parse or an object supporting the |
| 63 | 63 | * getDocComment method (such as a ReflectionClass object). |
| 64 | + * @param Types\Context $context |
|
| 64 | 65 | */ |
| 65 | 66 | public function create($docblock, ?Types\Context $context = null, ?Location $location = null): DocBlock |
| 66 | 67 | { |
@@ -95,6 +96,10 @@ discard block |
||
| 95 | 96 | ); |
| 96 | 97 | } |
| 97 | 98 | |
| 99 | + /** |
|
| 100 | + * @param integer $tagName |
|
| 101 | + * @param string $handler |
|
| 102 | + */ |
|
| 98 | 103 | public function registerTagHandler($tagName, $handler): void |
| 99 | 104 | { |
| 100 | 105 | $this->tagFactory->registerTagHandler($tagName, $handler); |
@@ -241,6 +246,9 @@ discard block |
||
| 241 | 246 | return $result; |
| 242 | 247 | } |
| 243 | 248 | |
| 249 | + /** |
|
| 250 | + * @param string $tags |
|
| 251 | + */ |
|
| 244 | 252 | private function filterTagBlock($tags): ?string |
| 245 | 253 | { |
| 246 | 254 | $tags = trim($tags); |