Advertisement
Guest User

Untitled

a guest
Oct 31st, 2012
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1.     class Main {
  2.         private $display;
  3.         private $analysis;
  4.        
  5.         use Config ;
  6.    
  7.         function __construct(User $user) {
  8.             $main->display = new Mobile($user);
  9.             $main->analysis = new Standard($user);
  10.         }
  11.    
  12.         public function run() {
  13.             $this->display; // This is your display ;
  14.             $this->analysis; // This is your display ;
  15.         }
  16.     }
  17.    
  18.     $main = new Main(new Users("Jeff"));
  19.     $main->run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement