final protected function prepareResults()
    {
        $args = func_get_args();
        $array = array_shift($args);

        if (!empty($array)) {
            $result = array();
            foreach ($array as $target) {
                array_push($result, $this->callHydrator($target, $args));
            }

            return $result;
        } else {
            return array();
        }
    }
final protected function prepareResults()
    {
        $args = func_get_args();
        $array = array_shift($args);

        if (!empty($array)) {
            $result = array();
            foreach ($array as $target) {
                array_push($result, $this->callHydrator($target, $args));
            }

            return $result;
        } else {
            return array();
        }
    }
final protected function prepareResults ( ) { $ args = func_get_args ( ) ; $ array = array_shift ( $ args ) ; if ( ! empty ( $ array ) ) { $ result = array ( ) ; foreach ( $ array as $ target ) { array_push ( $ result , $ this -> callHydrator ( $ target , $ args ) ) ; } return $ result ; } else { return array ( ) ; } }
Converts an array to object

@param array $array
@return array
Converts an array to object