@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | /** |
210 | 210 | * Create a TextUi Runner |
211 | 211 | * |
212 | - * @return Runner |
|
212 | + * @return TextUI\Runner |
|
213 | 213 | */ |
214 | 214 | protected function createTextUiRunner() |
215 | 215 | { |
@@ -572,6 +572,9 @@ discard block |
||
572 | 572 | return new Engine($configuration, $cacheFactory, $analyzerFactory); |
573 | 573 | } |
574 | 574 | |
575 | + /** |
|
576 | + * @param TextUI\Runner $runner |
|
577 | + */ |
|
575 | 578 | protected function silentRun($runner) |
576 | 579 | { |
577 | 580 | ob_start(); |
@@ -821,7 +824,7 @@ discard block |
||
821 | 824 | * Parses the test code associated with the calling test method. |
822 | 825 | * |
823 | 826 | * @param boolean $ignoreAnnotations The parser should ignore annotations. |
824 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
827 | + * @return Source\AST\ASTArtifactList |
|
825 | 828 | */ |
826 | 829 | protected function parseCodeResourceForTest($ignoreAnnotations = false) |
827 | 830 | { |
@@ -837,7 +840,7 @@ discard block |
||
837 | 840 | * |
838 | 841 | * @param string $testCase |
839 | 842 | * @param boolean $ignoreAnnotations |
840 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
843 | + * @return Source\AST\ASTArtifactList |
|
841 | 844 | */ |
842 | 845 | public function parseTestCaseSource($testCase, $ignoreAnnotations = false) |
843 | 846 | { |
@@ -861,7 +864,7 @@ discard block |
||
861 | 864 | * |
862 | 865 | * @param string $fileOrDirectory |
863 | 866 | * @param boolean $ignoreAnnotations |
864 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
867 | + * @return Source\AST\ASTArtifactList |
|
865 | 868 | */ |
866 | 869 | public function parseSource($fileOrDirectory, $ignoreAnnotations = false) |
867 | 870 | { |
@@ -922,6 +925,9 @@ discard block |
||
922 | 925 | ); |
923 | 926 | } |
924 | 927 | |
928 | + /** |
|
929 | + * @param string $className |
|
930 | + */ |
|
925 | 931 | public function getMockBuilder($className) |
926 | 932 | { |
927 | 933 | include_once __DIR__ . '/MockBuilder.php'; |
@@ -929,6 +935,9 @@ discard block |
||
929 | 935 | return new MockBuilder($this, $className); |
930 | 936 | } |
931 | 937 | |
938 | + /** |
|
939 | + * @param string $originalClassName |
|
940 | + */ |
|
932 | 941 | protected function getAbstractClassMock($originalClassName, array $arguments = array(), $mockClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true, $mockedMethods = array(), $cloneArguments = false) |
933 | 942 | { |
934 | 943 | if (version_compare(phpversion(), '7.4.0-dev', '<')) { |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | * Analyzes the registered directories and returns the collection of |
329 | 329 | * analyzed namespace. |
330 | 330 | * |
331 | - * @return \PDepend\Source\AST\ASTNamespace[] |
|
331 | + * @return Source\AST\ASTArtifactList |
|
332 | 332 | */ |
333 | 333 | public function analyze() |
334 | 334 | { |
@@ -721,6 +721,9 @@ discard block |
||
721 | 721 | return $analyzers; |
722 | 722 | } |
723 | 723 | |
724 | + /** |
|
725 | + * @param string $path |
|
726 | + */ |
|
724 | 727 | private function isPhpStream($path) |
725 | 728 | { |
726 | 729 | return substr($path, 0, strlen($this->phpStreamPrefix)) === $this->phpStreamPrefix; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | /** |
274 | 274 | * Returns all {@link \PDepend\Source\AST\ASTMethod} objects in this type. |
275 | 275 | * |
276 | - * @return ASTMethod[] |
|
276 | + * @return ASTArtifactList |
|
277 | 277 | */ |
278 | 278 | public function getMethods() |
279 | 279 | { |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | * names of all those properties that should be cached for this class or |
480 | 480 | * interface instance. |
481 | 481 | * |
482 | - * @return array |
|
482 | + * @return string[] |
|
483 | 483 | */ |
484 | 484 | public function __sleep() |
485 | 485 | { |
@@ -221,6 +221,12 @@ |
||
221 | 221 | } |
222 | 222 | } |
223 | 223 | |
224 | + /** |
|
225 | + * @param integer $tokenType |
|
226 | + * @param integer $modifiers |
|
227 | + * |
|
228 | + * @return integer |
|
229 | + */ |
|
224 | 230 | private function getModifiersForConstantDefinition($tokenType, $modifiers) |
225 | 231 | { |
226 | 232 | $allowed = State::IS_PUBLIC | State::IS_PROTECTED | State::IS_PRIVATE; |