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

Method demo

examples/demo.php:466–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

464 public function getPens(): \ArrayIterator { return new \ArrayIterator([new Pen()]); }
465
466 public function demo(): void
467 {
468 $pen = $this->getPens()->current();
469 $pen->write(); // ArrayIterator<int, Pen> → current() returns Pen
470
471 // Direct chain also works:
472 $this->getPens()->current()->write(); // same resolution through the chain
473 }
474}
475
476

Callers

nothing calls this directly

Calls 3

getPensMethod · 0.95
currentMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected