Asset
in package
implements
JsonSerializable
FinalYes
Typed wrapper around parsed asset data.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $data : array<string, mixed>
Methods
- __construct() : mixed
- getOccurrences() : int
- getPath() : string
- getType() : string
- jsonSerialize() : mixed
- toArray() : array<string, mixed>
Properties
$data
private
array<string, mixed>
$data
Methods
__construct()
public
__construct(array<string, mixed> $data) : mixed
Parameters
- $data : array<string, mixed>
-
Parsed asset data.
getOccurrences()
public
getOccurrences() : int
Return values
intgetPath()
public
getPath() : string
Return values
stringgetType()
public
getType() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : mixed
toArray()
public
toArray() : array<string, mixed>