@@ -18,7 +18,6 @@ |
||
18 | 18 | use phpDocumentor\Descriptor\Builder\Reflector\AssemblerAbstract; |
19 | 19 | use phpDocumentor\Descriptor\Tag\ReturnDescriptor; |
20 | 20 | use phpDocumentor\Reflection\DocBlock\Tags\Return_; |
21 | -use phpDocumentor\Reflection\Types\Compound; |
|
22 | 21 | |
23 | 22 | /** |
24 | 23 | * Constructs a new descriptor from the Reflector for an `@return` tag. |
@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | * type. |
39 | 39 | * |
40 | 40 | * @todo update link to point to the final destination for the PHPDoc Standard. |
41 | + * @return void |
|
41 | 42 | */ |
42 | 43 | public function setType(?Type $type); |
43 | 44 | |
@@ -54,6 +55,7 @@ discard block |
||
54 | 55 | * Sets the default value for an argument expressed as a string. |
55 | 56 | * |
56 | 57 | * @param string $value A textual representation of the default value. |
58 | + * @return void |
|
57 | 59 | */ |
58 | 60 | public function setDefault($value); |
59 | 61 | |
@@ -68,6 +70,7 @@ discard block |
||
68 | 70 | * Sets whether this argument passes its parameter by reference or by value. |
69 | 71 | * |
70 | 72 | * @param boolean $byReference True if the parameter is passed by reference, otherwise it is by value. |
73 | + * @return void |
|
71 | 74 | */ |
72 | 75 | public function setByReference($byReference); |
73 | 76 |
@@ -17,7 +17,6 @@ |
||
17 | 17 | |
18 | 18 | use InvalidArgumentException; |
19 | 19 | use phpDocumentor\Descriptor\Builder\Reflector\AssemblerAbstract; |
20 | -use phpDocumentor\Descriptor\Example\Finder; |
|
21 | 20 | use phpDocumentor\Descriptor\Tag\ExampleDescriptor; |
22 | 21 | use phpDocumentor\Reflection\DocBlock\ExampleFinder; |
23 | 22 | use phpDocumentor\Reflection\DocBlock\Tags\Example; |
@@ -247,7 +247,7 @@ |
||
247 | 247 | * 2. if the parent is a class and implements interfaces, check each interface for a method with the exact same |
248 | 248 | * name. If such a method is found, return the first hit. |
249 | 249 | * |
250 | - * @return MethodDescriptor|null |
|
250 | + * @return DescriptorAbstract|null |
|
251 | 251 | */ |
252 | 252 | public function getInheritedElement() |
253 | 253 | { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * @param string $from_name |
150 | 150 | * @param string|ClassDescriptor|InterfaceDescriptor|TraitDescriptor $to |
151 | 151 | * |
152 | - * @return Edge|null |
|
152 | + * @return \self|null |
|
153 | 153 | */ |
154 | 154 | protected function createEdge($graph, $from_name, $to) |
155 | 155 | { |
@@ -180,6 +180,9 @@ discard block |
||
180 | 180 | return null; |
181 | 181 | } |
182 | 182 | |
183 | + /** |
|
184 | + * @param string $fqcn |
|
185 | + */ |
|
183 | 186 | protected function createNamespaceGraph($fqcn) |
184 | 187 | { |
185 | 188 | $namespaceParts = explode('\\', $fqcn); |
@@ -18,12 +18,10 @@ |
||
18 | 18 | use phpDocumentor\Descriptor\Builder\AssemblerFactory; |
19 | 19 | use phpDocumentor\Descriptor\Builder\AssemblerInterface; |
20 | 20 | use phpDocumentor\Descriptor\Builder\Reflector\AssemblerAbstract; |
21 | -use phpDocumentor\Descriptor\Cache\ProjectDescriptorMapper; |
|
22 | 21 | use phpDocumentor\Descriptor\Filter\Filter; |
23 | 22 | use phpDocumentor\Descriptor\Filter\Filterable; |
24 | 23 | use phpDocumentor\Descriptor\ProjectDescriptor\Settings; |
25 | 24 | use phpDocumentor\Reflection\Php\Project; |
26 | -use Psr\Log\LogLevel; |
|
27 | 25 | |
28 | 26 | /** |
29 | 27 | * Builds a Project Descriptor and underlying tree. |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace phpDocumentor\Descriptor; |
13 | 13 | |
14 | 14 | use \Mockery as m; |
15 | -use phpDocumentor\Descriptor\ProjectDescriptor\Settings; |
|
16 | 15 | |
17 | 16 | /** |
18 | 17 | * Tests the functionality for the ProjectDescriptorBuilder class. |
@@ -87,7 +87,7 @@ |
||
87 | 87 | * When a FileReflector (or mock thereof) is passed to the 'get' method this mock will return an |
88 | 88 | * empty instance of the FileDescriptor class. |
89 | 89 | * |
90 | - * @return m\MockInterface|\phpDocumentor\Descriptor\Builder\AssemblerFactory |
|
90 | + * @return m\LegacyMockInterface |
|
91 | 91 | */ |
92 | 92 | protected function createAssemblerFactoryMock() |
93 | 93 | { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * |
54 | 54 | * @param string[] $templateNames |
55 | 55 | * |
56 | - * @return m\MockInterface|Factory |
|
56 | + * @return m\LegacyMockInterface |
|
57 | 57 | */ |
58 | 58 | private function givenAFactoryWithTemplateNames(array $templateNames) |
59 | 59 | { |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | * @param Type $type |
345 | 345 | * @param string $constantName |
346 | 346 | * |
347 | - * @return m\MockInterface|ClassDescriptor |
|
347 | + * @return m\LegacyMockInterface |
|
348 | 348 | */ |
349 | 349 | protected function createParentClassWithSuperClassAndConstant(Type $type, $constantName) |
350 | 350 | { |
@@ -374,7 +374,7 @@ discard block |
||
374 | 374 | /** |
375 | 375 | * Sets up mocks as such that the fixture has a file. |
376 | 376 | * |
377 | - * @return m\MockInterface|FileDescriptor |
|
377 | + * @return m\LegacyMockInterface |
|
378 | 378 | */ |
379 | 379 | protected function whenFixtureIsDirectlyRelatedToAFile() |
380 | 380 | { |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | /** |
387 | 387 | * Sets up mocks as such that the fixture has a parent class, with a file. |
388 | 388 | * |
389 | - * @return m\MockInterface|FileDescriptor |
|
389 | + * @return m\LegacyMockInterface |
|
390 | 390 | */ |
391 | 391 | protected function whenFixtureIsRelatedToAClassWithFile() |
392 | 392 | { |