public function getResult($resultMode = 0)
    {
        switch ($resultMode) {
            case self::FETCH_ARRAY:
                return $this->query->toArray();
            break;
            case self::FETCH_JSON:
                $result = json_encode($this->query->toArray());

                return $result;
            break;
            case self::FETCH_JSON_BEAUTIFY:
                $result = json_encode($this->query->toArray(), JSON_PRETTY_PRINT);

                return $result;
            break;
            case self::FETCH_OBJECT:
                $result = json_encode($this->query->toArray());

                return json_decode($result);
            break;
            default:
                return $this->query;
            break;
        }
    }