Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main {
- private $display;
- private $analysis;
- use Config ;
- function __construct(User $user) {
- $main->display = new Mobile($user);
- $main->analysis = new Standard($user);
- }
- public function run() {
- $this->display; // This is your display ;
- $this->analysis; // This is your display ;
- }
- }
- $main = new Main(new Users("Jeff"));
- $main->run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement