1Class
2-----
3<?php
4
5class Foo extends Bar implements ABC, \DEF, namespace\GHI
6{
7    var $a = 'foo';
8    private $b = 'bar';
9    static $c = 'baz';
10    function test()
11    {
12        $this->a = 'bar';
13        echo 'test';
14    }
15
16    protected function baz() {}
17    public function foo() {}
18    abstract static function bar() {}
19}
20
21trait Bar
22{
23    function test()
24    {
25    }
26}
27-----
28class Foo extends Bar implements ABC, \DEF, namespace\GHI
29{
30    var $a = 'foo';
31    private $b = 'bar';
32    static $c = 'baz';
33    function test()
34    {
35        $this->a = 'bar';
36        echo 'test';
37    }
38    protected function baz()
39    {
40    }
41    public function foo()
42    {
43    }
44    abstract static function bar()
45    {
46    }
47}
48trait Bar
49{
50    function test()
51    {
52    }
53}
54