Valinor/tests/Integration/Mapping/Source
Nathan Boiron ad51039cc3
feat: introduce a source builder
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);
```
2022-03-24 14:23:03 +01:00
..
Modifier feat: introduce a source builder 2022-03-24 14:23:03 +01:00
JsonSourceMappingTest.php fix: handle correctly iterable source during mapping 2021-11-30 13:04:09 +01:00
SourceTest.php feat: introduce a source builder 2022-03-24 14:23:03 +01:00
YamlSourceMappingTest.php fix: handle correctly iterable source during mapping 2021-11-30 13:04:09 +01:00