\Vegas\Db\Decorator\HelperMappingHelperTrait

Class MappingHelperTrait

Summary

Methods
Properties
Constants
toMappedArray()
readMapped()
No public properties found
No constants found
No protected methods found
$mappings
N/A
No private methods found
No private properties found
N/A

Properties

$mappings

$mappings : array

Defines field mappings in format

array(

 'field_1' => 'mapper_1',
 'field_2' => array('mapper_1', 'mapper_2')

)

Type

array

Methods

toMappedArray()

toMappedArray() : array

Returns array of attributes with mapped values

Returns

array

readMapped()

readMapped( $name) : mixed

Returns mapped value of attribute

Parameters

$name

Returns

mixed