@@ -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) { |
@@ -85,6 +85,7 @@ discard block |
||
| 85 | 85 | * The name of the field |
| 86 | 86 | * @param mixed $value |
| 87 | 87 | * The value of this field |
| 88 | + * @return void |
|
| 88 | 89 | */ |
| 89 | 90 | public function addField($fieldname, $value); |
| 90 | 91 | |
@@ -113,6 +114,7 @@ discard block |
||
| 113 | 114 | * The name of the field |
| 114 | 115 | * @param mixed $value |
| 115 | 116 | * The additional value of this field |
| 117 | + * @return void |
|
| 116 | 118 | */ |
| 117 | 119 | public function addMultiValueField($field, $value); |
| 118 | 120 | |
@@ -124,6 +126,7 @@ discard block |
||
| 124 | 126 | * |
| 125 | 127 | * @param string $clazz |
| 126 | 128 | * The classname |
| 129 | + * @return void |
|
| 127 | 130 | */ |
| 128 | 131 | public function setEntityClass($clazz); |
| 129 | 132 | |
@@ -143,6 +146,7 @@ discard block |
||
| 143 | 146 | * |
| 144 | 147 | * @param mixed $id |
| 145 | 148 | * The ID of the corresponding entity |
| 149 | + * @return void |
|
| 146 | 150 | */ |
| 147 | 151 | public function setEntityId($id); |
| 148 | 152 | |
@@ -159,6 +163,7 @@ discard block |
||
| 159 | 163 | * hiding some programatically needed complexity from the user |
| 160 | 164 | * |
| 161 | 165 | * @param string $type |
| 166 | + * @return void |
|
| 162 | 167 | */ |
| 163 | 168 | public function setEntityType($type); |
| 164 | 169 | |
@@ -169,7 +174,7 @@ discard block |
||
| 169 | 174 | * |
| 170 | 175 | * If no entity type is set, the class will be used instead |
| 171 | 176 | * |
| 172 | - * @param return $type |
|
| 177 | + * @return string |
|
| 173 | 178 | */ |
| 174 | 179 | public function getEntityType(); |
| 175 | 180 | |
@@ -179,6 +184,7 @@ discard block |
||
| 179 | 184 | * <strong>note:</strong> This may not supported by the underlying implementation |
| 180 | 185 | * |
| 181 | 186 | * @param string $path |
| 187 | + * @return void |
|
| 182 | 188 | */ |
| 183 | 189 | public function setFile($path); |
| 184 | 190 | |