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

Method toArray

examples/demo.php:4440–4448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4438 }
4439
4440 public function toArray(): array
4441 {
4442 return [
4443 'id' => $this->getId(),
4444 'name' => $this->getName(),
4445 'email' => $this->email,
4446 'status' => $this->status->value,
4447 ];
4448 }
4449
4450 public function format(string $template): string
4451 {

Callers 3

demoMethod · 0.45
toArrayMethod · 0.45
runDemoAssertionsFunction · 0.45

Calls 2

getNameMethod · 0.95
getIdMethod · 0.80

Tested by

no test coverage detected