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

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

        return $this->retrieveTotalRecords;
    }
public function isRetrieveTotalRecords ( $ val = null ) { if ( ! is_null ( $ val ) ) { $ this -> retrieveTotalRecords = $ val ; return $ this ; } return $ this -> retrieveTotalRecords ; }
Determines if the DTO will retrieve a count of total records for the results
Also acts as a setter for retrieve total records

@param boolean $val If set to true, then it will retrieve a count of total records for the results.
If unspecified, the function will return the current value for retrieveTotalRecords

@return mixed Will return DTO $this if $val is specified, otherwise,
returns boolean that answers the question "Retrieve a count of total records?"
Determines if the DTO will retrieve a count of total records for the results Also acts as a setter for retrieve total records