@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Static shortcut to \Mockery\Container::mock(). |
| 74 | 74 | * |
| 75 | - * @param array $args |
|
| 75 | + * @param string $args |
|
| 76 | 76 | * |
| 77 | 77 | * @return \Mockery\MockInterface |
| 78 | 78 | */ |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | /** |
| 167 | 167 | * Static fetching of a mock associated with a name or explicit class poser. |
| 168 | 168 | * |
| 169 | - * @param $name |
|
| 169 | + * @param string $name |
|
| 170 | 170 | * |
| 171 | 171 | * @return \Mockery\Mock |
| 172 | 172 | */ |
@@ -575,7 +575,7 @@ discard block |
||
| 575 | 575 | * Returns all public instance properties. |
| 576 | 576 | * |
| 577 | 577 | * @param $object |
| 578 | - * @param $nesting |
|
| 578 | + * @param integer $nesting |
|
| 579 | 579 | * |
| 580 | 580 | * @return array |
| 581 | 581 | */ |
@@ -599,7 +599,7 @@ discard block |
||
| 599 | 599 | * Returns all object getters. |
| 600 | 600 | * |
| 601 | 601 | * @param $object |
| 602 | - * @param $nesting |
|
| 602 | + * @param integer $nesting |
|
| 603 | 603 | * |
| 604 | 604 | * @return array |
| 605 | 605 | */ |
@@ -824,16 +824,25 @@ discard block |
||
| 824 | 824 | return empty($methodNames); |
| 825 | 825 | } |
| 826 | 826 | |
| 827 | + /** |
|
| 828 | + * @param string $fqn |
|
| 829 | + */ |
|
| 827 | 830 | public static function declareClass($fqn) |
| 828 | 831 | { |
| 829 | 832 | return static::declareType($fqn, "class"); |
| 830 | 833 | } |
| 831 | 834 | |
| 835 | + /** |
|
| 836 | + * @param string $fqn |
|
| 837 | + */ |
|
| 832 | 838 | public static function declareInterface($fqn) |
| 833 | 839 | { |
| 834 | 840 | return static::declareType($fqn, "interface"); |
| 835 | 841 | } |
| 836 | 842 | |
| 843 | + /** |
|
| 844 | + * @param string $type |
|
| 845 | + */ |
|
| 837 | 846 | private static function declareType($fqn, $type) |
| 838 | 847 | { |
| 839 | 848 | $targetCode = "<?php "; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * names or partials - just so long as it's something that can be mocked. |
| 86 | 86 | * I'll refactor it one day so it's easier to follow. |
| 87 | 87 | * |
| 88 | - * @param array $args |
|
| 88 | + * @param string $args |
|
| 89 | 89 | * |
| 90 | 90 | * @return Mock |
| 91 | 91 | * @throws Exception\RuntimeException |
@@ -455,6 +455,9 @@ discard block |
||
| 455 | 455 | } |
| 456 | 456 | } |
| 457 | 457 | |
| 458 | + /** |
|
| 459 | + * @return MockInterface |
|
| 460 | + */ |
|
| 458 | 461 | protected function _getInstance($mockName, $constructorArgs = null) |
| 459 | 462 | { |
| 460 | 463 | if ($constructorArgs !== null) { |
@@ -480,6 +483,9 @@ discard block |
||
| 480 | 483 | return $instance; |
| 481 | 484 | } |
| 482 | 485 | |
| 486 | + /** |
|
| 487 | + * @param Generator\MockConfiguration $config |
|
| 488 | + */ |
|
| 483 | 489 | protected function checkForNamedMockClashes($config) |
| 484 | 490 | { |
| 485 | 491 | $name = $config->getName(); |
@@ -735,6 +735,9 @@ discard block |
||
| 735 | 735 | } |
| 736 | 736 | } |
| 737 | 737 | |
| 738 | + /** |
|
| 739 | + * @return ReceivedMethodCalls |
|
| 740 | + */ |
|
| 738 | 741 | protected function _mockery_getReceivedMethodCalls() |
| 739 | 742 | { |
| 740 | 743 | return $this->_mockery_receivedMethodCalls ?: $this->_mockery_receivedMethodCalls = new \Mockery\ReceivedMethodCalls(); |
@@ -814,7 +817,7 @@ discard block |
||
| 814 | 817 | * Uses reflection to get the list of all |
| 815 | 818 | * methods within the current mock object |
| 816 | 819 | * |
| 817 | - * @return array |
|
| 820 | + * @return \ReflectionMethod[] |
|
| 818 | 821 | */ |
| 819 | 822 | protected function mockery_getMethods() |
| 820 | 823 | { |