PHP Class Plum\Plum\Converter\MappingConverter

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

Protected Properties

Свойство Type Description
$mappings array

Méthodes publiques

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

Method Details

__construct() public méthode

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

addMapping() public méthode

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

convert() public méthode

public convert ( mixed $item ) : mixed
$item mixed
Résultat mixed

Property Details

$mappings protected_oe property

protected array $mappings
Résultat array