CodeIgniter v4.5 API

DataConverter
in package

FinalYes

PHP data <==> DataSource data converter

Tags
see
DataConverterTest
template

TEntity of object

Table of Contents

Properties

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

Properties

$extractor read-only

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

private Closure|string|null $extractor = null

Used by extract().

Tags
phpstan-var

(Closure(TEntity, bool, bool): array<string, mixed>)|string|null

$helper read-only

Helper object.

private object|null $helper = null

$reconstructor read-only

Static reconstruct method name or closure to reconstruct an object.

private Closure|string|null $reconstructor = 'reconstruct'

Used by reconstruct().

Tags
phpstan-var

(Closure(array<string, mixed>): TEntity)|string|null

$types read-only

Type definitions.

private array<string, string> $types

[column => type]


        
On this page

Search results