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

Method wrap

examples/demo.php:4180–4184  ·  view source on GitHub ↗

* @template T * @param T $item * @return TypedCollection */

(object $item)

Source from the content-addressed store, hash-verified

4178 * @return TypedCollection<int, T>
4179 */
4180 public function wrap(object $item): TypedCollection
4181 {
4182 /** @var TypedCollection<int, T> */
4183 return new TypedCollection([$item]);
4184 }
4185
4186 /**
4187 * @template T

Callers 2

demoMethod · 0.45
runDemoAssertionsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected