Documentation

MapProperties

Table of Contents

Properties

$DEFAULT_MAPPING  : mixed
$propertyToFieldMap  : array<string|int, mixed>

Methods

constructorHook()  : mixed
mapFieldsToProperties()  : array<string|int, mixed>
mapFieldToProperty()  : string
mapPropertiesToFields()  : array<string|int, mixed>
mapPropertyToField()  : string
computeMapping()  : array<string|int, mixed>

Properties

$propertyToFieldMap

private array<string|int, mixed> $propertyToFieldMap

Methods

constructorHook()

public constructorHook([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []

mapFieldsToProperties()

public mapFieldsToProperties(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

mapFieldToProperty()

public mapFieldToProperty(string $field) : string
Parameters
$field : string
Return values
string

mapPropertiesToFields()

public mapPropertiesToFields(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

mapPropertyToField()

public mapPropertyToField(string $property) : string
Parameters
$property : string
Return values
string

computeMapping()

private computeMapping([array<string|int, mixed> $propertyToFieldMap = null ]) : array<string|int, mixed>
Parameters
$propertyToFieldMap : array<string|int, mixed> = null
Return values
array<string|int, mixed>

        
On this page

Search results