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

Method demo

examples/demo.php:1266–1277  ·  view source on GitHub ↗
(string $type)

Source from the content-addressed store, hash-verified

1264class SwitchDemo
1265{
1266 public function demo(string $type): void
1267 {
1268 switch ($type) {
1269 case 'reviews':
1270 $service = new ElasticProductReviewIndexService();
1271 break;
1272 case 'brands':
1273 $service = new ElasticBrandIndexService();
1274 break;
1275 }
1276 $service->index(); // on both classes
1277 }
1278}
1279
1280

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected