PageRenderTime 47ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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
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
  1. <?hh
  2. class TestParentClass
  3. {
  4. public function method()
  5. {
  6. print_r('Parent method');
  7. print "\n";
  8. }
  9. }
  10. trait TestTrait
  11. {
  12. public function method()
  13. {
  14. print_r('Trait method');
  15. print "\n";
  16. }
  17. }
  18. class TestChildClass extends TestParentClass
  19. {
  20. use TestTrait
  21. {
  22. TestTrait::method as methodAlias;
  23. TestParentClass::method as TestParent;
  24. }
  25. }