CodeIgniter v4.7 API

DataConverter
in package

Read onlyYes
FinalYes

PHP data <==> DataSource data converter

Tags
template
see
DataConverterTest

Table of Contents

Properties

$dataCaster  : DataCaster
The data caster.
$extractor  : callable(TEntity, bool, bool): array<string, mixed>|string|null
Extract method name or closure to extract data from an object.
$helper  : object|null
Helper object.
$reconstructor  : callable(array<string, mixed>): TEntity|string|null
Static reconstruct method name or closure to reconstruct an object.
$types  : array<string, string>
Type definitions.

Properties

$extractor

Extract method name or closure to extract data from an object.

private callable(TEntity, bool, bool): array<string, mixed>|string|null $extractor = null

Used by extract().

$reconstructor

Static reconstruct method name or closure to reconstruct an object.

private callable(array<string, mixed>): TEntity|string|null $reconstructor = 'reconstruct'

Used by reconstruct().

$types

Type definitions.

private array<string, string> $types

[column => type]


        
On this page

Search results