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