StructureEncoder implements ValueEncoder
FinalYes
Interfaces
- ValueEncoder
- Turns one PHP value into its Floe binary representation. Implementations are built per column type by the {@see \Flow\Floe\ValueEncoder} factory.
Methods
- __construct() : mixed
- encode() : string
Methods
__construct()
public
__construct(array<string|int, ValueEncoder> $elements, bool $allowsExtra, DynamicEncoder $dynamic) : mixed
Parameters
- $elements : array<string|int, ValueEncoder>
-
structure element name => encoder
- $allowsExtra : bool
- $dynamic : DynamicEncoder
encode()
public
encode(mixed $value) : string
Parameters
- $value : mixed