MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / groupBy

Method groupBy

examples/demo.php:5145–5147  ·  view source on GitHub ↗

* @template TGroupKey of array-key * * @param (callable(TValue, TKey): TGroupKey)|array|string $groupBy * @param bool $preserveKeys * @return static< * ($groupBy is (array|string) * ? array-key * : TGroupKey), * static<($preserveKeys is true ? TKey : int), TValue> * > */

($groupBy, $preserveKeys = false)

Source from the content-addressed store, hash-verified

5143 * >
5144 */
5145 public function groupBy($groupBy, $preserveKeys = false)
5146 {
5147 }
5148
5149 /**
5150 * @template TMapValue

Callers 2

demoMethod · 0.80
eloquentQueryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected