private function generateFileName($name)
    {
        $filename = is_null($name) ? $this->getUniqId() : $name;
        return is_null($this->getPrefix()) ? $filename : $this->getPrefix() . $filename;
    }
private function generateFileName($name)
    {
        $filename = is_null($name) ? $this->getUniqId() : $name;
        return is_null($this->getPrefix()) ? $filename : $this->getPrefix() . $filename;
    }
private function generateFileName ( $ name ) { $ filename = is_null ( $ name ) ? $ this -> getUniqId ( ) : $ name ; return is_null ( $ this -> getPrefix ( ) ) ? $ filename : $ this -> getPrefix ( ) . $ filename ; }
Creates filename based on name and prefix.
It generates uniqid-like string if name is ommited
@param string $name
@return string
Creates filename based on name and prefix . It generates uniqid - like string if name is ommited