Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. class RealParent {
  2.     function DoSomething() { return "DoSomething"; }
  3.  
  4. class ParentOne {
  5.     function Foo() { return "One"; }
  6. }
  7.  
  8. class ParentTwo {
  9.     function Bar() { return "Two"; }
  10. }
  11.  
  12. class MyClass extends RealParent {
  13.     use ParentOne, ParentTwo;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement