tartrazine/spec/tests/php/anonymous_class.txt

29 lines
517 B
Plaintext

---input---
<?php
$containerObject = new class {
public $something;
}
---tokens---
'<?php' Comment.Preproc
'\n' Text
'$containerObject' Name.Variable
' ' Text
'=' Operator
' ' Text
'new' Keyword
' ' Text
'class' Keyword
' ' Text
'{' Punctuation
'\n ' Text
'public' Keyword
' ' Text
'$something' Name.Variable
';' Punctuation
'\n' Text
'}' Punctuation
'\n' Text