mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-03 09:47:59 +01:00
a73aa7eec1
Our output for yield / yield from is currently not very nice, but also not easy to change.
53 lines
759 B
Plaintext
53 lines
759 B
Plaintext
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()
|
|
{
|
|
}
|
|
} |