@@ -17,6 +17,9 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | class StingerSoftEntitySearchBundle extends Bundle { |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param string $env |
|
| 22 | + */ |
|
| 20 | 23 | public static function getRequiredBundles($env) { |
| 21 | 24 | $bundles = array(); |
| 22 | 25 | $bundles['StingerSoftEntitySearchBundle'] = '\StingerSoft\EntitySearchBundle\StingerSoftEntitySearchBundle'; |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * |
| 105 | 105 | * @param string $name |
| 106 | 106 | * Name of the property to set |
| 107 | - * @param mixed $value |
|
| 107 | + * @param string[] $value |
|
| 108 | 108 | * The value of the property |
| 109 | 109 | */ |
| 110 | 110 | public function __set($name, $value) { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * |
| 103 | - * @param FormBuilderInterface|Form $builder |
|
| 103 | + * @param FormInterface $builder |
|
| 104 | 104 | * @param FacetSet $facets |
| 105 | 105 | */ |
| 106 | 106 | protected function createFacets($builder, FacetSet $facets, array $options, $data) { |
@@ -143,6 +143,9 @@ discard block |
||
| 143 | 143 | return $choices; |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | + /** |
|
| 147 | + * @param string $facetType |
|
| 148 | + */ |
|
| 146 | 149 | protected function formatFacet($formatter, $facetType, $facet, $count) { |
| 147 | 150 | $default = $facet . ' (' . $count . ')'; |
| 148 | 151 | if(!$formatter) { |
@@ -25,9 +25,9 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * |
| 28 | - * @param number $save |
|
| 28 | + * @param integer $save |
|
| 29 | 29 | * Number of expected saves |
| 30 | - * @param number $delete |
|
| 30 | + * @param integer $delete |
|
| 31 | 31 | * Number of expected deletions |
| 32 | 32 | */ |
| 33 | 33 | protected function registerDoctrineListener($save = 0, $delete = 0) { |
@@ -50,9 +50,9 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * |
| 53 | - * @param number $save |
|
| 53 | + * @param integer $save |
|
| 54 | 54 | * Number of expected saves |
| 55 | - * @param number $delete |
|
| 55 | + * @param integer $delete |
|
| 56 | 56 | * Number of expected deletions |
| 57 | 57 | */ |
| 58 | 58 | protected function registerSearchService($save = 0, $delete = 0) { |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * Tries to create a document from the given object |
| 25 | 25 | * |
| 26 | - * @param object $object |
|
| 27 | 26 | * @return boolean|Document Returns false if no document could be created |
| 28 | 27 | */ |
| 29 | 28 | public function getEntity(Document $document); |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | /** |
| 138 | 138 | * Fetches the mapping for the given object including the mapping of superclasses |
| 139 | 139 | * |
| 140 | - * @param object $object |
|
| 140 | + * @param string $clazz |
|
| 141 | 141 | * @return \StingerSoft\EntitySearchBundle\Services\string[string] |
| 142 | 142 | */ |
| 143 | 143 | protected function getMapping($clazz) { |
@@ -92,6 +92,7 @@ discard block |
||
| 92 | 92 | * The name of the field |
| 93 | 93 | * @param mixed $value |
| 94 | 94 | * The value of this field |
| 95 | + * @return void |
|
| 95 | 96 | */ |
| 96 | 97 | public function addField($fieldname, $value); |
| 97 | 98 | |
@@ -120,6 +121,7 @@ discard block |
||
| 120 | 121 | * The name of the field |
| 121 | 122 | * @param mixed $value |
| 122 | 123 | * The additional value of this field |
| 124 | + * @return void |
|
| 123 | 125 | */ |
| 124 | 126 | public function addMultiValueField($field, $value); |
| 125 | 127 | |
@@ -131,6 +133,7 @@ discard block |
||
| 131 | 133 | * |
| 132 | 134 | * @param string $clazz |
| 133 | 135 | * The classname |
| 136 | + * @return void |
|
| 134 | 137 | */ |
| 135 | 138 | public function setEntityClass($clazz); |
| 136 | 139 | |
@@ -150,6 +153,7 @@ discard block |
||
| 150 | 153 | * |
| 151 | 154 | * @param mixed $id |
| 152 | 155 | * The ID of the corresponding entity |
| 156 | + * @return void |
|
| 153 | 157 | */ |
| 154 | 158 | public function setEntityId($id); |
| 155 | 159 | |
@@ -166,6 +170,7 @@ discard block |
||
| 166 | 170 | * hiding some programatically needed complexity from the user |
| 167 | 171 | * |
| 168 | 172 | * @param string $type |
| 173 | + * @return void |
|
| 169 | 174 | */ |
| 170 | 175 | public function setEntityType($type); |
| 171 | 176 | |
@@ -176,7 +181,7 @@ discard block |
||
| 176 | 181 | * |
| 177 | 182 | * If no entity type is set, the class will be used instead |
| 178 | 183 | * |
| 179 | - * @param return $type |
|
| 184 | + * @return string |
|
| 180 | 185 | */ |
| 181 | 186 | public function getEntityType(); |
| 182 | 187 | |
@@ -186,6 +191,7 @@ discard block |
||
| 186 | 191 | * <strong>note:</strong> This may not supported by the underlying implementation |
| 187 | 192 | * |
| 188 | 193 | * @param string $path |
| 194 | + * @return void |
|
| 189 | 195 | */ |
| 190 | 196 | public function setFile($path); |
| 191 | 197 | |