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

Method when

examples/demo.php:4090–4090  ·  view source on GitHub ↗

* @param callable($this, mixed): $this $callback * @return $this */

(bool $condition, callable $callback)

Source from the content-addressed store, hash-verified

4088 * @return $this
4089 */
4090 public function when(bool $condition, callable $callback): static { return $this; }
4091
4092 /**
4093 * @param callable($this): void $callback

Callers 2

demoMethod · 0.80
eloquentQueryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected