Documentation

RawStringTranscoder
in package
implements Transcoder

Interfaces, Classes, Traits and Enums

Transcoder

Table of Contents

$instance  : RawStringTranscoder|null
decode()  : string
Just returns the value
encode()  : array<string|int, mixed>
Assumes that input value is just a string
getInstance()  : Transcoder

Properties

Methods

decode()

Just returns the value

public decode(string $bytes, int $flags) : string
Parameters
$bytes : string

encoded data

$flags : int

flags from network layer, that describes format of the encoded data

Tags
since
4.0.0
Return values
string

decoded document

encode()

Assumes that input value is just a string

public encode(string $value) : array<string|int, mixed>
Parameters
$value : string

document

Tags
since
4.0.0
Return values
array<string|int, mixed>

tuple of encoded value with flags for network layer


        

Search results