Created
January 7, 2013 15:42
-
-
Save davedevelopment/4475927 to your computer and use it in GitHub Desktop.
RussianDependencyRoulettePimple
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 RussianDependencyRoulettePimple extends Pimple | |
{ | |
public function offsetGet($id) | |
{ | |
return parent::offsetGet(reset(shuffle($this->keys()))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment