JsonProcessor¶
-
php\format\JsonProcessor
extends: php\format\Processor
Class JsonProcessor
Constants
Methods
__construct
($flags = 0)¶
Параметры:
- $flags –
int
parse
($json)¶throws php\format\ProcessorException
Параметры:
- $json –
string
, php\io\StreamРезультат:
mixed
format
($value)¶throws php\format\ProcessorException
Параметры:
- $value –
mixed
Результат:
string
formatTo
($value, $output)¶throws php\format\ProcessorException
Параметры:
- $value –
mixed
- $output – php\io\Stream
onSerialize
($nameOfType, $handler = null)¶
Параметры:
- $nameOfType –
string
- - null, int, float, string, bool, object, array- $handler –
callable
- (mixed $value) -> mixed
onClassSerialize
($className, $handler = null)¶
Параметры:
- $className –
string
- $handler –
callable