public function resolveFilename($extension = null)
    {
        if ($extension === null) {
            $extension = $this->extension;
        }
        return $this->name . '-' . $this->id . '.' . $extension;
    }
public function resolveFilename($extension = null)
    {
        if ($extension === null) {
            $extension = $this->extension;
        }
        return $this->name . '-' . $this->id . '.' . $extension;
    }
public function resolveFilename ( $ extension = null ) { if ( $ extension === null ) { $ extension = $ this -> extension ; } return $ this -> name . '-' . $ this -> id . '.' . $ extension ; }
Returns the full filename for this file.
@param string $extension the file extension.
@return string the filename.
Returns the full filename for this file .