v1.0.0
English

DataConverter.php

system/DataConverter/DataConverter.php
1 class 6 methods

class DataConverter

PHP data <==> DataSource data converter
__construct (/** * Type definitions. * * @var array<string, string> [column => type] */ private readonly array $types, array $castHandlers = [], /** * Helper object. */ private readonly ?object $helper = null, /** * Static reconstruct method name or closure to reconstruct an object. * Used by reconstruct(). * * @var (Closure(array<string, mixed>): TEntity)|string|null */ private readonly Closure|string|null $reconstructor = 'reconstruct', /** * Extract method name or closure to extract data from an object. * Used by extract(). * * @var (Closure(TEntity, bool, bool): array<string, mixed>)|string|null */ private readonly Closure|string|null $extractor = null, ) public
fromDataSource (array $data) public
toDataSource (array $phpData) public
reconstruct (string $classname, array $row) public
void ($key, $value) public
extract (object $object, bool $onlyChanged = false, bool $recursive = false) public
phpDG v1.0.0 DataConverter.php 662 files 498 classes 763 fn
Generated