mirror of
https://github.com/danog/Valinor.git
synced 2024-11-27 04:34:48 +01:00
ad51039cc3
The `Source` class is a new entry point for sources that are not plain array or iterable. It allows accessing other features like camel-case keys or custom paths mapping in a convenient way. It should be used as follows: ```php $source = \CuyZ\Valinor\Mapper\Source\Source::json($jsonString) ->camelCaseKeys() ->map([ 'towns' => 'cities', 'towns.*.label' => 'name', ]); $result = (new \CuyZ\Valinor\MapperBuilder()) ->mapper() ->map(SomeClass::class, $source); ``` |
||
---|---|---|
.. | ||
Fake | ||
Fixture | ||
Functional | ||
Integration | ||
StaticAnalysis | ||
Traits | ||
Unit |