BookStack\Attachment::getFileName PHP 메소드

getFileName() 공개 메소드

Get the downloadable file name for this upload.
public getFileName ( ) : mixed | string
리턴 mixed | string
    public function getFileName()
    {
        if (str_contains($this->name, '.')) {
            return $this->name;
        }
        return $this->name . '.' . $this->extension;
    }