Template
in package
implements
JsonSerializable
FinalYes
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $file : File
- $hasPreview : bool
- $previewUrl : string|null
- $templateId : string
- $templateType : string
Methods
- __construct() : mixed
- jsonSerialize() : array<string|int, mixed>
- setCustomPreviewUrl() : void
- setHasPreview() : void
Properties
$file
private
File
$file
$hasPreview
private
bool
$hasPreview
= false
$previewUrl
private
string|null
$previewUrl
= null
$templateId
private
string
$templateId
$templateType
private
string
$templateType
Methods
__construct()
public
__construct(string $templateType, string $templateId, File $file) : mixed
Parameters
- $templateType : string
- $templateId : string
- $file : File
Tags
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>setCustomPreviewUrl()
public
setCustomPreviewUrl(string $previewUrl) : void
Parameters
- $previewUrl : string
Tags
setHasPreview()
public
setHasPreview(bool $hasPreview) : void
Parameters
- $hasPreview : bool