* @param callable(TValue, TKey): void $callback * @return static */
(callable $callback)
| 5161 | * @return static<TKey, TValue> |
| 5162 | */ |
| 5163 | public function each(callable $callback) |
| 5164 | { |
| 5165 | foreach ($this->items as $key => $value) { |
| 5166 | $callback($value, $key); |
| 5167 | } |
| 5168 | return $this; |
| 5169 | } |
| 5170 | |
| 5171 | /** @return TValue|null */ |
| 5172 | public function first(): mixed |
no outgoing calls
no test coverage detected