original_string: protected function fetchNewsItems($begin, $end, $limit = null, $offset = null)
      {
          if (($criteria = $this->getSearchCriteria($begin, $end)) === null) {
              return null;
          }
  
          $criteria->setLimit($limit);
          $criteria->setOffset($offset);
  
          return NewsModel::findBy($criteria->getColumns(), $criteria->getValues(), $criteria->getOptions());
  	}
code: protected function fetchNewsItems($begin, $end, $limit = null, $offset = null)
      {
          if (($criteria = $this->getSearchCriteria($begin, $end)) === null) {
              return null;
          }
  
          $criteria->setLimit($limit);
          $criteria->setOffset($offset);
  
          return NewsModel::findBy($criteria->getColumns(), $criteria->getValues(), $criteria->getOptions());
  	}
code_tokens: protected function fetchNewsItems ( $ begin , $ end , $ limit = null , $ offset = null ) { if ( ( $ criteria = $ this -> getSearchCriteria ( $ begin , $ end ) ) === null ) { return null ; } $ criteria -> setLimit ( $ limit ) ; $ criteria -> setOffset ( $ offset ) ; return NewsModel :: findBy ( $ criteria -> getColumns ( ) , $ criteria -> getValues ( ) , $ criteria -> getOptions ( ) ) ; }
docstring: Fetch the news items
  
  @param int $begin
  @param int $end
  @param int $limit
  @param int $offset
  
  @return Collection|null
docstring_tokens: Fetch the news items