@@ -69,7 +69,7 @@ |
||
69 | 69 | * @param null|int $limit |
70 | 70 | * @param array $options |
71 | 71 | * |
72 | - * @return array |
|
72 | + * @return \Elastica\Result[] |
|
73 | 73 | */ |
74 | 74 | protected function search($query, $limit = null, $options = array()) |
75 | 75 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @param string $level |
24 | 24 | * @param string $message |
25 | - * @param array $context |
|
25 | + * @param string[] $context |
|
26 | 26 | * |
27 | 27 | * @return ElasticaLogger |
28 | 28 | */ |
@@ -256,6 +256,9 @@ |
||
256 | 256 | public $id; |
257 | 257 | public $highlights; |
258 | 258 | |
259 | + /** |
|
260 | + * @param integer $id |
|
261 | + */ |
|
259 | 262 | public function __construct($id) |
260 | 263 | { |
261 | 264 | $this->id = $id; |
@@ -7,6 +7,9 @@ discard block |
||
7 | 7 | |
8 | 8 | class TransformedFinderTest extends \PHPUnit_Framework_TestCase |
9 | 9 | { |
10 | + /** |
|
11 | + * @param string $transformMethod |
|
12 | + */ |
|
10 | 13 | private function createMockTransformer($transformMethod) |
11 | 14 | { |
12 | 15 | $transformer = $this->getMock('FOS\ElasticaBundle\Transformer\ElasticaToModelTransformerInterface'); |
@@ -19,6 +22,10 @@ discard block |
||
19 | 22 | return $transformer; |
20 | 23 | } |
21 | 24 | |
25 | + /** |
|
26 | + * @param Query $query |
|
27 | + * @param integer $limit |
|
28 | + */ |
|
22 | 29 | private function createMockFinderForSearch($transformer, $query, $limit) |
23 | 30 | { |
24 | 31 | $searchable = $this->getMock('Elastica\SearchableInterface'); |
@@ -201,6 +201,9 @@ |
||
201 | 201 | $this->processor = new AliasProcessor(); |
202 | 202 | } |
203 | 203 | |
204 | + /** |
|
205 | + * @param string $name |
|
206 | + */ |
|
204 | 207 | private function getMockedIndex($name) |
205 | 208 | { |
206 | 209 | $index = $this->getMockBuilder('FOS\\ElasticaBundle\\Elastica\\Index') |
@@ -207,7 +207,7 @@ |
||
207 | 207 | protected $id; |
208 | 208 | |
209 | 209 | /** |
210 | - * @param int|string $id |
|
210 | + * @param string $id |
|
211 | 211 | */ |
212 | 212 | public function __construct($id) |
213 | 213 | { |