traitUse.test 337 B

12345678910111213141516171819202122232425
  1. Trait uses and adaptations
  2. -----
  3. <?php
  4. class A
  5. {
  6. use B, C, D {
  7. f as g;
  8. f as private;
  9. f as private g;
  10. B::f as g;
  11. B::f insteadof C, D;
  12. }
  13. }
  14. -----
  15. class A
  16. {
  17. use B, C, D {
  18. f as g;
  19. f as private;
  20. f as private g;
  21. B::f as g;
  22. B::f insteadof C, D;
  23. }
  24. }