Created
April 7, 2012 04:01
-
-
Save jasonhazel/2324944 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
public function Run() {} | |
} | |
class Bar | |
{ | |
public function Run() {} | |
} | |
class Application | |
{ | |
private $foo; | |
private $bar; | |
public function __construct() | |
{ | |
$this->foo = new Foo; | |
$this->bar = new Bar; | |
} | |
public function Run() | |
{ | |
$this->foo->Run(); | |
$this->bar->Run(); | |
} | |
} | |
$Application = new Application; | |
$Application->Run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment