Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Plum
Plum
Converter
MappingConverter
PHP Class Plum\Plum\Converter\MappingConverter
Author:
Florian Eckerstorfer (
[email protected]
)
Inheritance:
implements
Plum\Plum\Converter\ConverterInterface
Show file
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 property
protected
array
$mappings
return
array