LiteralResource
Hierarchy
- Resource
- LiteralResource
Index
Constructors
constructor
Creates a new instance of
LiteralResource
.Parameters
resource: LiteralReference
The literal reference.
optionalprogress: ProgressTracker
The progress tracker.
Returns LiteralResource
Properties
publicoptionalprogress
The progress tracker.
Accessors
isAsync
Whether this Resource is loaded asynchronously
Returns boolean
name
The name of the referenced file
Returns string
Methods
resolve
Resolves the file contents
Returns Promise<File>
The resolved file.
setPlayground
Parameters
playground: UniversalPHP
Returns void
staticcreate
Creates a new Resource based on the given file reference
Parameters
ref: FileReference
The file reference to create the Resource for
options: ResourceOptions
Additional options for the Resource
Returns Resource
A new Resource instance
A
Resource
that represents a literal file.