astrXbian/www/multitube/vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test

53 lines
759 B
Plaintext
Raw Normal View History

2021-03-20 01:33:02 +01:00
Class
-----
<?php
class Foo extends Bar implements ABC, \DEF, namespace\GHI
{
var $a = 'foo';
private $b = 'bar';
static $c = 'baz';
function test()
{
$this->a = 'bar';
echo 'test';
}
protected function baz() {}
public function foo() {}
abstract static function bar() {}
}
trait Bar
{
function test()
{
}
}
-----
class Foo extends Bar implements ABC, \DEF, namespace\GHI
{
var $a = 'foo';
private $b = 'bar';
static $c = 'baz';
function test()
{
$this->a = 'bar';
echo 'test';
}
protected function baz()
{
}
public function foo()
{
}
static abstract function bar()
{
}
}
trait Bar
{
function test()
{
}
}