spec/Phn/Mapping/HierarchicalMapperSpec.php
function it_converts_and_normalizes_nested_sets_to_pg($normalizer, $converter)
    {
        $this->setType('decimal', $converter, $normalizer);

        $this
            ->toPg(
                [
                    [
                        (object) [
                            'value' => 3.14159265359
                        ]
                    ],
                    [
                        (object) [
                            'value' => 1.66180339887
                        ]
                    ]
                ],
                'decimal[][]'
            )
            ->shouldBeLike(new Set(
                [
                    new Set(
                        [
                            new Value('3.14159265359', new Type('decimal'))
                        ],
                        new ArrayType(new Type('decimal'))
                    ),
                    new Set(
                        [
                            new Value('1.66180339887', new Type('decimal'))
                        ],
                        new ArrayType(new Type('decimal'))
                    )
                ],
                new ArrayType(new ArrayType(new Type('decimal')))
            ))
        ;
    }
function it_converts_and_normalizes_nested_sets_to_pg($normalizer, $converter)
    {
        $this->setType('decimal', $converter, $normalizer);

        $this
            ->toPg(
                [
                    [
                        (object) [
                            'value' => 3.14159265359
                        ]
                    ],
                    [
                        (object) [
                            'value' => 1.66180339887
                        ]
                    ]
                ],
                'decimal[][]'
            )
            ->shouldBeLike(new Set(
                [
                    new Set(
                        [
                            new Value('3.14159265359', new Type('decimal'))
                        ],
                        new ArrayType(new Type('decimal'))
                    ),
                    new Set(
                        [
                            new Value('1.66180339887', new Type('decimal'))
                        ],
                        new ArrayType(new Type('decimal'))
                    )
                ],
                new ArrayType(new ArrayType(new Type('decimal')))
            ))
        ;
    }
function it_converts_and_normalizes_nested_sets_to_pg ( $ normalizer , $ converter ) { $ this -> setType ( 'decimal' , $ converter , $ normalizer ) ; $ this -> toPg ( [ [ ( object ) [ 'value' => 3.14159265359 ] ] , [ ( object ) [ 'value' => 1.66180339887 ] ] ] , 'decimal[][]' ) -> shouldBeLike ( new Set ( [ new Set ( [ new Value ( '3.14159265359' , new Type ( 'decimal' ) ) ] , new ArrayType ( new Type ( 'decimal' ) ) ) , new Set ( [ new Value ( '1.66180339887' , new Type ( 'decimal' ) ) ] , new ArrayType ( new Type ( 'decimal' ) ) ) ] , new ArrayType ( new ArrayType ( new Type ( 'decimal' ) ) ) ) ) ; }
It converts and normalizes nested sets to pg.

@param \Phn\Mapping\Normalizer\NormalizerInterface $normalizer
@param \Phn\Mapping\Converter\ConverterInterface   $converter
It converts and normalizes nested sets to pg .