mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
24 lines
500 B
Text
24 lines
500 B
Text
class Box<T> {
|
|
// ^ type
|
|
// ^ type
|
|
protected T $data;
|
|
// ^ keyword
|
|
// ^ type
|
|
|
|
public function __construct(T $data) {
|
|
// ^ type
|
|
// ^ parameter
|
|
// ^ keyword.function
|
|
// ^ keyword
|
|
// ^ method
|
|
$this->data = $data;
|
|
}
|
|
|
|
public function getData(): T {
|
|
// ^ method
|
|
// ^ keyword
|
|
return $this->data;
|
|
// ^ operator
|
|
// ^ variable.builtin
|
|
}
|
|
}
|