Valinor/tests
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
..
Fake misc: handle class name in function definition 2022-03-17 21:41:08 +01:00
Fixture fix: handle parameter default object value compilation 2022-03-09 10:33:40 +01:00
Functional misc: handle class name in function definition 2022-03-17 21:41:08 +01:00
Integration feat: introduce a source builder 2022-03-24 14:23:03 +01:00
StaticAnalysis test: configure vimeo/psalm to verify type inference 2022-01-13 19:55:20 +01:00
Traits feat: initial release 2021-11-28 18:21:56 +01:00
Unit feat!: introduce method to register constructors used during mapping 2022-03-24 13:03:55 +01:00