dev-master
9999999-dev
MIT
The Requires
- php ^5.6 || ^7.0
- ivanche/type-converter ^0.1
The Development Requires
by Cherkasov Ivan
0.1.0
0.1.0.0
MIT
The Requires
- php ^5.6 || ^7.0
- ivanche/type-converter ^0.1
The Development Requires
by Cherkasov Ivan
Wallogit.com
2017 © Pedro Peláez
This bundle is built to inject a library type converter., (*1)
Use composer to intall this bundle, (*2)
composer require ivanche/type-converter-bundle
It have a few options., (*3)
ivanche_type_converter:
auto_mapping: false
strict: true
If the converter implements Ivanche\Converter\AutoMappingInterface, we add methodCall setAutoMapping to definition of your converter., (*4)
If auto_mapping is true, converter try to set public properties(or properties with public getter/setter) to target
from source., (*5)
If the converter implements Ivanche\Converter\AutoMappingInterface, we add methodCall setStrictMode to definition of your converter., (*6)
When strict is true, converter throw exception Ivanche\Exception\UnsupportedSourcePropertyException if automapping try to set public properties(or properties with public getter/setter) from source which don't exist in target., (*7)
MIT
MIT