@@ -9,16 +9,19 @@ |
||
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | 11 | * Create indexes |
| 12 | + * @return void |
|
| 12 | 13 | */ |
| 13 | 14 | public function createIndex(); |
| 14 | 15 | |
| 15 | 16 | /** |
| 16 | 17 | * Populate the indexes |
| 18 | + * @return void |
|
| 17 | 19 | */ |
| 18 | 20 | public function populateIndex(); |
| 19 | 21 | |
| 20 | 22 | /** |
| 21 | 23 | * Delete indexes |
| 24 | + * @return void |
|
| 22 | 25 | */ |
| 23 | 26 | public function deleteIndex(); |
| 24 | 27 | |
@@ -9,6 +9,7 @@ |
||
| 9 | 9 | * |
| 10 | 10 | * @param SearchProviderInterface $provider |
| 11 | 11 | * @param string $alias |
| 12 | + * @return void |
|
| 12 | 13 | */ |
| 13 | 14 | public function addProvider(SearchProviderInterface $provider, $alias); |
| 14 | 15 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Return the index object |
| 33 | 33 | * |
| 34 | - * @param $indexName |
|
| 34 | + * @param string $indexName |
|
| 35 | 35 | * |
| 36 | 36 | * @return mixed |
| 37 | 37 | */ |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @param string $indexName Name of the index |
| 56 | 56 | * @param string $indexType Type of the index to add the document to |
| 57 | - * @param array $document The document to index |
|
| 57 | + * @param string $document The document to index |
|
| 58 | 58 | * @param string $uid Unique ID for this document, this will allow the document to be overwritten by new data |
| 59 | 59 | * instead of being duplicated |
| 60 | 60 | */ |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | public function addNGramTokenizer(); |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @param string $language |
|
| 51 | + * @return AnalysisFactoryInterface |
|
| 52 | 52 | */ |
| 53 | 53 | public function setupLanguage($lang = 'english'); |
| 54 | 54 | } |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | /** |
| 111 | 111 | * Get createdAt |
| 112 | 112 | * |
| 113 | - * @return datetime |
|
| 113 | + * @return \DateTime |
|
| 114 | 114 | */ |
| 115 | 115 | public function getCreatedAt() |
| 116 | 116 | { |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | * |
| 81 | 81 | * @param mixed $value The value in the transformed representation |
| 82 | 82 | * |
| 83 | - * @return mixed The value in the original representation |
|
| 83 | + * @return ArrayCollection The value in the original representation |
|
| 84 | 84 | * |
| 85 | 85 | * @throws UnexpectedTypeException when the argument is not of the expected type |
| 86 | 86 | * @throws TransformationFailedException when the transformation fails |
@@ -58,6 +58,9 @@ |
||
| 58 | 58 | return $this->extension; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param string $extension |
|
| 63 | + */ |
|
| 61 | 64 | public function setExtension($extension) |
| 62 | 65 | { |
| 63 | 66 | $this->extension = $extension; |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | - * @return mixed |
|
| 104 | + * @return string |
|
| 105 | 105 | */ |
| 106 | 106 | public function getId() |
| 107 | 107 | { |
@@ -118,6 +118,9 @@ discard block |
||
| 118 | 118 | $this->keyword = $keyword; |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | + /** |
|
| 122 | + * @return string |
|
| 123 | + */ |
|
| 121 | 124 | public function getDomain() |
| 122 | 125 | { |
| 123 | 126 | return $this->domain; |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Returns a list of filters. |
| 26 | 26 | * |
| 27 | - * @return array An array of filters |
|
| 27 | + * @return \Twig_SimpleFilter[] An array of filters |
|
| 28 | 28 | */ |
| 29 | 29 | public function getFilters() |
| 30 | 30 | { |