Skip to content

Instantly share code, notes, and snippets.

@mageekguy
Created April 23, 2014 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mageekguy/11208900 to your computer and use it in GitHub Desktop.
Save mageekguy/11208900 to your computer and use it in GitHub Desktop.
public function apply(comparable $name, comparable $value, callable $callable)
{
$this->values->ifContains($name, function($values) use ($value, $callable) {
$values->ifContains($value, function($value) use ($callable) {
$this->objects->apply($value, function($objects) use ($callable) {
$objects->walk($callable);
}
);
}
);
}
);
return $this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment