Created
June 18, 2015 16:14
-
-
Save greydnls/29cbaebf3486f58d02d7 to your computer and use it in GitHub Desktop.
Default Object
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
public function amazingFunction(CoolObjectInterface $object = new SlightlyColdObject()) | |
{ | |
$this->object = $object; | |
} | |
public function notAsAmazingFunction(BlahObjectInterface $object = null) | |
{ | |
if ($object == null) $this->object = new BoringObject(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment