/hphp/test/zend/good/Zend/tests/traits/bug64235b.php
PHP | 29 lines | 25 code | 4 blank | 0 comment | 0 complexity | 099d51d054faa4618961f83e5612f626 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh
- class TestParentClass
- {
- public function method()
- {
- print_r('Parent method');
- print "\n";
- }
- }
- trait TestTrait
- {
- public function method()
- {
- print_r('Trait method');
- print "\n";
- }
- }
- class TestChildClass extends TestParentClass
- {
- use TestTrait
- {
- TestTrait::method as methodAlias;
- TestParentClass::method as TestParent;
- }
- }