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>
$DEFAULT_MAPPING
public
static mixed
$DEFAULT_MAPPING
= []
$propertyToFieldMap
private
array<string|int, mixed>
$propertyToFieldMap
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
-
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
-
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>