traits.php 286 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace {
  3. trait TFoo
  4. {
  5. }
  6. class CFoo
  7. {
  8. use TFoo;
  9. }
  10. }
  11. namespace Foo {
  12. trait TBar
  13. {
  14. }
  15. interface IBar
  16. {
  17. }
  18. trait TFooBar
  19. {
  20. }
  21. class CBar implements IBar
  22. {
  23. use TBar;
  24. use TFooBar;
  25. }
  26. }