Last active
December 17, 2015 05:49
-
-
Save toopay/5560831 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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