highlights(hack): extend queries add tests

This commit is contained in:
Stephan Seitz 2021-11-23 18:23:57 +01:00
parent 77c006eb08
commit cc0bdabe5f
10 changed files with 280 additions and 5 deletions

View file

@ -0,0 +1,23 @@
class Box<T> {
// ^ type
// ^ type
protected T $data;
// ^ keyword
// ^ type
public function __construct(T $data) {
// ^ type
// ^ parameter
// ^ keyword
// ^ method
$this->data = $data;
}
public function getData(): T {
// ^ method
// ^ keyword
return $this->data;
// ^ operator
// ^ variable.builtin
}
}