Encoder
in package
Class that encodes a JSON document object into a flat string format
Table of Contents
- $transformations : array<string|int, mixed>
- encode() : string
- Encode the
- transform() : string
- Search a given string and transform any reserved characters into their safe version
Properties
$transformations
protected
static array<string|int, mixed>
$transformations
= array('~' => '~0', '/' => '~1')
Required transformations for reserved characters
Methods
encode()
Encode the
public
static encode(array<string|int, mixed> $operations) : string
Parameters
- $operations : array<string|int, mixed>
Return values
string —transform()
Search a given string and transform any reserved characters into their safe version
public
static transform( $value) : string