phpdoc fixes and additions

This commit is contained in:
Alexander Makarov
2014-10-14 01:35:21 +04:00
parent 715b4475ac
commit 02622b6fe4
9 changed files with 51 additions and 3 deletions

View File

@ -391,6 +391,15 @@ trait ActiveRelationTrait
return $buckets;
}
/**
* Indexes buckets by column name.
*
* @param array $buckets
* @var string|callable $column the name of the column by which the query results should be indexed by.
* This can also be a callable (e.g. anonymous function) that returns the index value based on the given row data.
* @return array
*/
private function indexBuckets($buckets, $indexBy)
{
$result = [];