traits.php 253 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace {
  3. trait TFoo {
  4. }
  5. class CFoo {
  6. use TFoo;
  7. }
  8. }
  9. namespace Foo {
  10. trait TBar {
  11. }
  12. interface IBar {
  13. }
  14. trait TFooBar {
  15. }
  16. class CBar implements IBar {
  17. use TBar, TFooBar;
  18. }
  19. }