keyedListObject example

return static function DScalarNormalizedTypesConfig $config) {
    $config
        ->simpleArray('foo')
        ->keyedArray('key', 'value')
        ->object(true)
        ->listObject('bar')
        ->listObject('baz')
        ->listObject()->name('qux');

    $config
        ->keyedListObject('Foo\\Bar', true)
        ->keyedListObject('Foo\\Baz')->settings(['one', 'two']);

    $config->nested([
        'nested_object' => true,
        'nested_list_object' => ['one', 'two'],
    ]);
};
Home | Imprint | This part of the site doesn't use cookies.