@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | /** |
| 165 | 165 | * Static fetching of a mock associated with a name or explicit class poser. |
| 166 | 166 | * |
| 167 | - * @param $name |
|
| 167 | + * @param string $name |
|
| 168 | 168 | * |
| 169 | 169 | * @return \Mockery\Mock |
| 170 | 170 | */ |
@@ -577,7 +577,7 @@ discard block |
||
| 577 | 577 | * Returns all public instance properties. |
| 578 | 578 | * |
| 579 | 579 | * @param $object |
| 580 | - * @param $nesting |
|
| 580 | + * @param integer $nesting |
|
| 581 | 581 | * |
| 582 | 582 | * @return array |
| 583 | 583 | */ |
@@ -601,7 +601,7 @@ discard block |
||
| 601 | 601 | * Returns all object getters. |
| 602 | 602 | * |
| 603 | 603 | * @param $object |
| 604 | - * @param $nesting |
|
| 604 | + * @param integer $nesting |
|
| 605 | 605 | * |
| 606 | 606 | * @return array |
| 607 | 607 | */ |
@@ -826,16 +826,25 @@ discard block |
||
| 826 | 826 | return empty($methodNames); |
| 827 | 827 | } |
| 828 | 828 | |
| 829 | + /** |
|
| 830 | + * @param string $fqn |
|
| 831 | + */ |
|
| 829 | 832 | public static function declareClass($fqn) |
| 830 | 833 | { |
| 831 | 834 | return static::declareType($fqn, "class"); |
| 832 | 835 | } |
| 833 | 836 | |
| 837 | + /** |
|
| 838 | + * @param string $fqn |
|
| 839 | + */ |
|
| 834 | 840 | public static function declareInterface($fqn) |
| 835 | 841 | { |
| 836 | 842 | return static::declareType($fqn, "interface"); |
| 837 | 843 | } |
| 838 | 844 | |
| 845 | + /** |
|
| 846 | + * @param string $type |
|
| 847 | + */ |
|
| 839 | 848 | private static function declareType($fqn, $type) |
| 840 | 849 | { |
| 841 | 850 | $targetCode = "<?php "; |