\Vegas\DbMappingResolverTrait

Class MappingResolverTrait

Summary

Methods
Properties
Constants
addMapping()
removeMapping()
hasMapping()
clearMappings()
resolveMapping()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

addMapping()

addMapping( $attributeName,  $mappings) : $this

Adds mapping for indicated attribute

Parameters

$attributeName
$mappings

Returns

$this

removeMapping()

removeMapping( $attributeName) : $this

Removes mapping from indicated attribute

Parameters

$attributeName

Returns

$this

hasMapping()

hasMapping( $attributeName) : boolean

Determines if attribute has defined mapping

Parameters

$attributeName

Returns

boolean

clearMappings()

clearMappings() : $this

Clear mappings

Returns

$this

resolveMapping()

resolveMapping( $attributeName,  $value) : mixed

Filter value of indicated attribute by applying defined mappings

Parameters

$attributeName
$value

Returns

mixed