original_string: public function getResourcesBySourceName($sourceName)
      {
          // Getting source object first
          $source = $this->getSourceByName($sourceName);
  
          // Getting the data
          if ($source instanceof SourceInterface) {
              // Getting result iterator
              try {
                  return $source->getContentIterator();
              } catch (\Exception $e) {
                  throw new Exception\SourceGetDataException(
                      sprintf(
                          'Exception caught while getting the content for the following source object: %s',
                          $source->toString()
                      )
                  );
              }
          }
          return null;
      }
code: public function getResourcesBySourceName($sourceName)
      {
          // Getting source object first
          $source = $this->getSourceByName($sourceName);
  
          // Getting the data
          if ($source instanceof SourceInterface) {
              // Getting result iterator
              try {
                  return $source->getContentIterator();
              } catch (\Exception $e) {
                  throw new Exception\SourceGetDataException(
                      sprintf(
                          'Exception caught while getting the content for the following source object: %s',
                          $source->toString()
                      )
                  );
              }
          }
          return null;
      }
code_tokens: public function getResourcesBySourceName ( $ sourceName ) { // Getting source object first $ source = $ this -> getSourceByName ( $ sourceName ) ; // Getting the data if ( $ source instanceof SourceInterface ) { // Getting result iterator try { return $ source -> getContentIterator ( ) ; } catch ( \ Exception $ e ) { throw new Exception \ SourceGetDataException ( sprintf ( 'Exception caught while getting the content for the following source object: %s' , $ source -> toString ( ) ) ) ; } } return null ; }
docstring: Returns an Iterator containing all the resources for the given source name
  
  @param string $sourceName the source name
  
  @throws \Msl\ResourceProxy\Exception\SourceGetDataException
  
  @return null|Iterator
docstring_tokens: Returns an Iterator containing all the resources for the given source name