public function getResources(SourceInterface $source)
    {
        // Getting resources iterator
        try {
            return $source->getContentIterator();
        } catch (\Exception $e) {
            throw new Exception\SourceGetDataException(
                sprintf(
                    'Exception caught while getting the resources for the following source object: %s',
                    $source->toString()
                )
            );
        }
    }
public function getResources(SourceInterface $source)
    {
        // Getting resources iterator
        try {
            return $source->getContentIterator();
        } catch (\Exception $e) {
            throw new Exception\SourceGetDataException(
                sprintf(
                    'Exception caught while getting the resources for the following source object: %s',
                    $source->toString()
                )
            );
        }
    }
public function getResources ( SourceInterface $ source ) { // Getting resources iterator try { return $ source -> getContentIterator ( ) ; } catch ( \ Exception $ e ) { throw new Exception \ SourceGetDataException ( sprintf ( 'Exception caught while getting the resources for the following source object: %s' , $ source -> toString ( ) ) ) ; } }
Returns an Iterator containing all the resources for the given source object

@param \Msl\ResourceProxy\Source\SourceInterface $source the source object

@throws \Msl\ResourceProxy\Exception\SourceGetDataException

@return null|Iterator
Returns an Iterator containing all the resources for the given source object