mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 20:19:42 +08:00
phpdoc fixes and additions
This commit is contained in:
@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user