@@ -247,7 +247,7 @@ |
||
| 247 | 247 | /** |
| 248 | 248 | * Get the mandatory fields for the serializer |
| 249 | 249 | * |
| 250 | - * @return array |
|
| 250 | + * @return string[] |
|
| 251 | 251 | */ |
| 252 | 252 | public function getMandatoryFields() |
| 253 | 253 | { |
@@ -50,12 +50,12 @@ |
||
| 50 | 50 | /** |
| 51 | 51 | * Create a new Cursor instance. |
| 52 | 52 | * |
| 53 | - * @param mixed $current |
|
| 53 | + * @param integer $current |
|
| 54 | 54 | * @param mixed $prev |
| 55 | 55 | * @param mixed $next |
| 56 | 56 | * @param int $count |
| 57 | 57 | * |
| 58 | - * @return void |
|
| 58 | + * @return CursorInterface |
|
| 59 | 59 | */ |
| 60 | 60 | public function __construct($current = null, $prev = null, $next = null, $count = null) |
| 61 | 61 | { |
@@ -709,11 +709,18 @@ |
||
| 709 | 709 | ]; |
| 710 | 710 | } |
| 711 | 711 | |
| 712 | + /** |
|
| 713 | + * @param string $resourceName |
|
| 714 | + */ |
|
| 712 | 715 | protected function createTransformerWithIncludedResource($resourceName, $transformResult) |
| 713 | 716 | { |
| 714 | 717 | $transformer = Mockery::mock('League\Fractal\TransformerAbstract')->makePartial(); |
| 715 | 718 | $transformer->shouldReceive('getAvailableIncludes')->twice()->andReturn([$resourceName]); |
| 716 | 719 | $transformer->shouldReceive('transform')->once()->andReturnUsing( |
| 720 | + |
|
| 721 | + /** |
|
| 722 | + * @param string $data |
|
| 723 | + */ |
|
| 717 | 724 | function (array $data) { |
| 718 | 725 | return $data; |
| 719 | 726 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @return Manager |
|
| 68 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 69 | 69 | */ |
| 70 | 70 | private function createManager() |
| 71 | 71 | { |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | - * @return ResourceInterface |
|
| 76 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
| 77 | 77 | */ |
| 78 | 78 | private function createResource() |
| 79 | 79 | { |