DataParserInterface
Interface for data parsers.
Tags
Table of Contents
- getData() : string
- Get the data as raw string.
- isResponsible() : bool
- returns true if this parser is responsible for this layerData object.
- postCompress() : array<string|int, array<string|int, array<string|int, mixed>>>
- After the compression algorithm decompresses the data, postCompile it.
Methods
getData()
Get the data as raw string.
public
getData(DataInterface $dataInterface) : string
Parameters
- $dataInterface : DataInterface
Return values
string —isResponsible()
returns true if this parser is responsible for this layerData object.
public
isResponsible(LayerData $layerData) : bool
Parameters
- $layerData : LayerData
Return values
bool —postCompress()
After the compression algorithm decompresses the data, postCompile it.
public
postCompress(string $data[, int $width = null ][, int $height = null ]) : array<string|int, array<string|int, array<string|int, mixed>>>
Parameters
- $data : string
- $width : int = null
- $height : int = null