PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/hphp/test/zend/good/Zend/tests/traits/bug64235b.php

http://github.com/facebook/hiphop-php
PHP | 29 lines | 25 code | 4 blank | 0 comment | 0 complexity | 099d51d054faa4618961f83e5612f626 MD5 | raw file
 1<?hh
 2
 3class TestParentClass
 4{
 5    public function method()
 6    {
 7        print_r('Parent method');
 8        print "\n";
 9    }
10}
11
12trait TestTrait
13{
14    public function method()
15    {
16        print_r('Trait method');
17        print "\n";
18    }
19}
20
21class TestChildClass extends TestParentClass
22{
23    use TestTrait
24    {
25        TestTrait::method as methodAlias;
26        TestParentClass::method as TestParent;
27    }
28}
29