Guest User

Untitled

a guest
Apr 24th, 2018
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. interface I{
  3. /** X */
  4. function bar();
  5. }
  6.  
  7. trait T{
  8. /** Y */
  9. function bar(){}
  10. }
  11.  
  12. class C implements I{
  13. use T; // EDIT: summary is resolved to Y & X. See an example below
  14. }
  15.  
  16. -----------------------
  17.  
  18. interface I{
  19. /** X */
  20. function bar(stdClass $abc);
  21. }
  22.  
  23. trait T{
  24. /** Y */
  25. function bar(){} // This will give an error
  26. }
  27.  
  28. class C implements I{
  29. use T;
  30. }
Add Comment
Please, Sign In to add comment