FloatEncoder
class FloatEncoder implements Encoder (View source)
Encoder for float values.
Constants
FLOAT_MAX |
The maximum value that can be accurately represented by a float |
Methods
array
getDefaultOptions()
Returns a list of options and their default values as an associative array.
bool
supports(mixed $value)
Tells if the encoder supports encoding the given value.
string
encode(mixed $value, int $depth, array $options, callable $encode)
Generates the PHP code representation for the given value.
Details
at line 23
array
getDefaultOptions()
Returns a list of options and their default values as an associative array.
at line 28
bool
supports(mixed $value)
Tells if the encoder supports encoding the given value.
at line 33
string
encode(mixed $value, int $depth, array $options, callable $encode)
Generates the PHP code representation for the given value.