Skip to content

Instantly share code, notes, and snippets.

@toopay
Last active December 17, 2015 05:49
Show Gist options
  • Save toopay/5560831 to your computer and use it in GitHub Desktop.
Save toopay/5560831 to your computer and use it in GitHub Desktop.
<?php
class Foo {
public function doSomething() {
// ... 60 lines of code here....
}
}
class Bar {
protected $foo;
public function __construct(Foo $foo) {
$this->foo = $foo;
}
public function doBarStuf() {
// ...
}
public function doOtherBarStuff() {
// ...
}
public function doSomethingRelatedFoo() {
$retval = $this->foo->doSomething();
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment