private static function convertResult($result)
    {
        if (!is_array($result)) {
            return self::convert($result);
        }

        $results = [];

        foreach ($result as $item) {
            $results[] = self::convert($item);
        }

        return $results;
    }
private static function convertResult($result)
    {
        if (!is_array($result)) {
            return self::convert($result);
        }

        $results = [];

        foreach ($result as $item) {
            $results[] = self::convert($item);
        }

        return $results;
    }
private static function convertResult ( $ result ) { if ( ! is_array ( $ result ) ) { return self :: convert ( $ result ) ; } $ results = [ ] ; foreach ( $ result as $ item ) { $ results [ ] = self :: convert ( $ item ) ; } return $ results ; }
Convert result.

@param mixed $result

@return \Cknow\Money\Money|\Cknow\Money\Money[]
Convert result .