private function processCommonQueryParameters()
{
$this->commonQueryParameters[self::QUERY_PARAM_MAX_RESULTS] = (int) $this->request->get(self::QUERY_PARAM_MAX_RESULTS, 100);
$this->commonQueryParameters[self::QUERY_PARAM_PAGE_NUM] = (int) $this->request->get(self::QUERY_PARAM_PAGE_NUM, 1);
if ($this->commonQueryParameters[self::QUERY_PARAM_PAGE_NUM] < 1) {
throw new ApiErrorException(400, ErrorMessage::ERR_INVALID_VALUE, 'Page number should be more than 0.');
}
if ($this->commonQueryParameters[self::QUERY_PARAM_MAX_RESULTS] < 1 || $this->commonQueryParameters[self::QUERY_PARAM_MAX_RESULTS] > 100) {
throw new ApiErrorException(400, ErrorMessage::ERR_INVALID_VALUE, 'Limit should be a positive number less then or equal to 100.');
}
}