Skip to content

Instantly share code, notes, and snippets.

@jasonhazel
Created April 7, 2012 04:01
Show Gist options
  • Save jasonhazel/2324944 to your computer and use it in GitHub Desktop.
Save jasonhazel/2324944 to your computer and use it in GitHub Desktop.
<?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