public function isRetrieveTotalRecords($val = null)
    {
        if (!is_null($val)) {
            $this->retrieveTotalRecords = $val;
            return $this;
        }

        return $this->retrieveTotalRecords;
    }