public function get($version)
    {
        if (!isset($this->versions[$version])) {
            throw new OutOfBoundsException(sprintf(
                'The version %s of path %s does not exist.',
                $version,
                $this->path
            ));
        }

        return $this->versions[$version];
    }
public function get($version)
    {
        if (!isset($this->versions[$version])) {
            throw new OutOfBoundsException(sprintf(
                'The version %s of path %s does not exist.',
                $version,
                $this->path
            ));
        }

        return $this->versions[$version];
    }
public function get ( $ version ) { if ( ! isset ( $ this -> versions [ $ version ] ) ) { throw new OutOfBoundsException ( sprintf ( 'The version %s of path %s does not exist.' , $ version , $ this -> path ) ) ; } return $ this -> versions [ $ version ] ; }
Returns a specific version of the resource.

@param int $version The version number starting at 0.

@return PuliResource The resource.

@throws OutOfBoundsException If the version number does not exist.
Returns a specific version of the resource .