Skip to content

Commit a2ae1d2

Browse files
committed
Fixed phpdoc for create index functions.
1 parent f7bb47e commit a2ae1d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/triagens/ArangoDb/CollectionHandler.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public function create($collection, $options = array())
429429
* @param int $size - the size of the cap constraint
430430
* @link http://www.arangodb.org/manuals/current/IndexCapHttp.html
431431
*
432-
* @return mixed - id of collection created
432+
* @return array - server response of the created index
433433
*/
434434
public function createCapConstraint($collectionId, $size)
435435
{
@@ -450,7 +450,7 @@ public function createCapConstraint($collectionId, $size)
450450
* @param boolean $ignoreNull - whether to ignore null
451451
* @link http://www.arangodb.org/manuals/current/IndexGeoHttp.html
452452
*
453-
* @return mixed - id of collection created
453+
* @return array - server response of the created index
454454
*/
455455
public function createGeoIndex($collectionId, array $fields, $geoJson = null, $constraint = null, $ignoreNull = null)
456456
{
@@ -479,7 +479,7 @@ public function createGeoIndex($collectionId, array $fields, $geoJson = null, $c
479479
* @param boolean $unique - whether the values in the index should be unique or not
480480
* @link http://www.arangodb.org/manuals/current/IndexHashHttp.html
481481
*
482-
* @return mixed - id of collection created
482+
* @return array - server response of the created index
483483
*/
484484
public function createHashIndex($collectionId, array $fields, $unique = null)
485485
{
@@ -500,7 +500,7 @@ public function createHashIndex($collectionId, array $fields, $unique = null)
500500
* @param int $minLength - the minimum length of words to index
501501
* @link http://www.arangodb.org/manuals/current/IndexFulltextHttp.html
502502
*
503-
* @return mixed - id of collection created
503+
* @return array - server response of the created index
504504
*/
505505
public function createFulltextIndex($collectionId, array $fields, $minLength = null)
506506
{
@@ -521,7 +521,7 @@ public function createFulltextIndex($collectionId, array $fields, $minLength = n
521521
* @param bool $unique - whether the index is unique or not
522522
* @link http://www.arangodb.org/manuals/current/IndexSkiplistHttp.html
523523
*
524-
* @return mixed - id of collection created
524+
* @return array - server response of the created index
525525
*/
526526
public function createSkipListIndex($collectionId, array $fields, $unique = null)
527527
{
@@ -549,7 +549,7 @@ public function createSkipListIndex($collectionId, array $fields, $unique = null
549549
* @param bool $unique - true/false to create a unique index
550550
* @param array $indexOptions - an associative array of options for the index like array('geoJson' => true)
551551
*
552-
* @return mixed - id of collection created
552+
* @return array - server response of the created index
553553
*/
554554
public function index($collectionId, $type = "", $attributes = array(), $unique = false, $indexOptions = array())
555555
{

0 commit comments

Comments
 (0)