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

Method demo

examples/demo.php:1369–1375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1367class GenericContextDemo
1368{
1369 public function demo(): void
1370 {
1371 $src = new ScaffoldingGenericContext();
1372
1373 $src->chest->unwrap()->open(); // Box<Gift>::unwrap() → Gift
1374 $src->display()->first()->open(); // TypedCollection<int, Gift>::first() → Gift
1375 }
1376}
1377
1378

Callers

nothing calls this directly

Calls 4

openMethod · 0.80
displayMethod · 0.80
unwrapMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected