blanchonvincent/zf2 — pull request #1 by Maks3w (2012-04-30 15:40:18+00:00)
Title: [ZF2-275] Suggestion

Hi,

I did some code cleanup and if you want you can merge this to your PR.

*) Switched RuntimeException to InvalidArgumentException in the arguments checks.

*) I cloned the return of getOptions so you can use the SearchOptions object in the execute method without the risk of modify the default options.