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

Method demo

examples/demo.php:628–635  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

626class TraitGenericDemo
627{
628 public function demo(): void
629 {
630 Product::factory()->create(); // @use HasFactory<UserFactory> → UserFactory
631 Product::factory()->count(5)->make(); // count() returns static, make() returns Product
632
633 $idx = new PenIndex(); // @use Indexable<int, Pen>
634 $idx->get()->write(); // TValue → Pen
635 }
636}
637
638

Callers

nothing calls this directly

Calls 6

factoryMethod · 0.80
writeMethod · 0.80
createMethod · 0.45
makeMethod · 0.45
countMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected