mirror of
https://github.com/danog/parser.git
synced 2024-12-03 09:57:45 +01:00
32 lines
418 B
PHP
32 lines
418 B
PHP
<?php
|
|
|
|
class ClassConstant {
|
|
const FOO = 1;
|
|
}
|
|
|
|
class VarDec {
|
|
var $foo;
|
|
var string $bar;
|
|
}
|
|
|
|
class PropDefs {
|
|
public static $foo;
|
|
public string $bar;
|
|
public $baz = 100;
|
|
}
|
|
|
|
abstract class Methods {
|
|
public function foo() {
|
|
|
|
}
|
|
|
|
abstract public function bar(): string;
|
|
|
|
final public function boo() {
|
|
|
|
}
|
|
}
|
|
|
|
class VisibleClassConstant {
|
|
final protected const BAR = 2;
|
|
} |