: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace NinjaForms\Includes\Entities;
use NinjaForms\Includes\Entities\SimpleEntity;
* Defines data passed from SubmissionHandlers to submissions page NF>=3.6.1
class SubmissionExtraHandlerResponse extends SimpleEntity
* Response type - 'none' or `download`
protected $responseType = '';
* Base 64 encoded downloadable string
protected $download = '';
* Application type of download (for constructing download)
protected $blobType = '';
* Result of request (usu. 'ok' or failure message)
* Filename of the download, including file extension
protected $filename = '';
* Construct entity from associative array
* @return SubmissionExtraHandlerResponse
public static function fromArray(array $items): SubmissionExtraHandlerResponse
foreach ($items as $property => $value) {
$obj = $obj->__set($property, $value);
public function getResponseType(): string
return $this->responseType;
* @param string $responseType Response type
* @return SubmissionExtraHandlerResponse
public function setResponseType(string $responseType): SubmissionExtraHandlerResponse
$this->responseType = $responseType;
public function getDownload(): string
* @param string $download Download
* @return SubmissionExtraHandlerResponse
public function setDownload(string $download): SubmissionExtraHandlerResponse
$this->download = $download;
public function getBlobType(): string
* @param string $blobType Blob type
* @return SubmissionExtraHandlerResponse
public function setBlobType(string $blobType): SubmissionExtraHandlerResponse
$this->blobType = $blobType;
public function getResult(): string
* @param string $result Result
* @return SubmissionExtraHandlerResponse
public function setResult(string $result): SubmissionExtraHandlerResponse
* Get filename of the download, including file extension
public function getFilename():string
* Set filename of the download, including file extension
* @param string $filename Filename of the download, including file extension
* @return SubmissionExtraHandlerResponse
public function setFilename(string $filename):SubmissionExtraHandlerResponse
$this->filename = $filename;