Fix example 5.2.

Small fix for the example 5.2. The parent property is called `$queryTypes`, not `$_queryTypes`. It also remove a PSR-2 warning (use of underscore in a variable).