PHP Class Plum\Plum\Converter\MappingConverter

Author: Florian Eckerstorfer ([email protected])
Inheritance: implements Plum\Plum\Converter\ConverterInterface
Mostrar archivo Open project: plumphp/plum Class Usage Examples

Protected Properties

Property Type Description
$mappings array

Public Methods

Method Description
__construct ( array $mappings = [] )
addMapping ( string | array $from, string | array $to, boolean $remove = true ) : MappingConverter
convert ( mixed $item ) : mixed

Method Details

__construct() public method

public __construct ( array $mappings = [] )
$mappings array

addMapping() public method

public addMapping ( string | array $from, string | array $to, boolean $remove = true ) : MappingConverter
$from string | array
$to string | array
$remove boolean
return MappingConverter

convert() public method

public convert ( mixed $item ) : mixed
$item mixed
return mixed

Property Details

$mappings protected_oe property

protected array $mappings
return array