Flow PHP

PhpJsonEncoder implements JsonEncoder

FinalYes

Interfaces

JsonEncoder

Properties

$dateFormat  : string
$dateTimeFormat  : string
$flags  : int

Methods

__construct()  : mixed
encode()  : string
fragments()  : array<int, string>

Properties

$dateTimeFormat read-only

public string $dateTimeFormat = DateTimeInterface::ATOM

Methods

__construct()

public __construct([int $flags = JSON_THROW_ON_ERROR ][, string $dateTimeFormat = DateTimeInterface::ATOM ][, string $dateFormat = 'Y-m-d' ]) : mixed
Parameters
$flags : int = JSON_THROW_ON_ERROR
$dateTimeFormat : string = DateTimeInterface::ATOM
$dateFormat : string = 'Y-m-d'

encode()

public encode(Rows $rows, string $separator) : string
Parameters
$rows : Rows
$separator : string
Return values
string

fragments()

public fragments(Type<string|int, mixed> $type, Column $column) : array<int, string>
Parameters
$type : Type<string|int, mixed>
$column : Column
Return values
array<int, string> —

the JSON text of every cell

On this page

Search results