public function getNameWithExtension()
    {
        return $this->extension === '' ? $this->name : sprintf('%s.%s', $this->name, $this->extension);
    }
public function getNameWithExtension()
    {
        return $this->extension === '' ? $this->name : sprintf('%s.%s', $this->name, $this->extension);
    }
public function getNameWithExtension ( ) { return $ this -> extension === '' ? $ this -> name : sprintf ( '%s.%s' , $ this -> name , $ this -> extension ) ; }
Get file name with extension

@return string
Get file name with extension