src/Koldy/Response/ContentDownload.php
public static function create(string $content, string $asName, string $contentType = null): ContentDownload
    {
        $self = new static($content);
        $self->setAsName($asName);

        if ($contentType !== null) {
            $self->setContentType($contentType);
        }

        return $self;
    }
public static function create(string $content, string $asName, string $contentType = null): ContentDownload
    {
        $self = new static($content);
        $self->setAsName($asName);

        if ($contentType !== null) {
            $self->setContentType($contentType);
        }

        return $self;
    }
public static function create ( string $ content , string $ asName , string $ contentType = null ) : ContentDownload { $ self = new static ( $ content ) ; $ self -> setAsName ( $ asName ) ; if ( $ contentType !== null ) { $ self -> setContentType ( $ contentType ) ; } return $ self ; }
Shorthand for creating this class, pass all required parameters at once

@param string $content
@param string $asName
@param string $contentType [optional]

@return ContentDownload
Shorthand for creating this class pass all required parameters at once