private function computePath($key)
    {
        $directory = $this->getDirectory();
        if (null === $directory || '' === $directory) {
            return $key;
        }

        return sprintf('%s/%s', $directory, $key);
    }
private function computePath($key)
    {
        $directory = $this->getDirectory();
        if (null === $directory || '' === $directory) {
            return $key;
        }

        return sprintf('%s/%s', $directory, $key);
    }
private function computePath ( $ key ) { $ directory = $ this -> getDirectory ( ) ; if ( null === $ directory || '' === $ directory ) { return $ key ; } return sprintf ( '%s/%s' , $ directory , $ key ) ; }
Computes the path for the specified key taking the bucket in account.

@param string $key The key for which to compute the path

@return string
Computes the path for the specified key taking the bucket in account .