spec/Phn/Mapping/HierarchicalMapperSpec.php
function it_converts_and_normalizes_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 Value('3.14159265359', new Type('decimal')),
                    new Value('1.66180339887', new Type('decimal'))
                ],
                new ArrayType(new Type('decimal'))
            ))
        ;
    }
function it_converts_and_normalizes_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 Value('3.14159265359', new Type('decimal')),
                    new Value('1.66180339887', new Type('decimal'))
                ],
                new ArrayType(new Type('decimal'))
            ))
        ;
    }
function it_converts_and_normalizes_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 Value ( '3.14159265359' , new Type ( 'decimal' ) ) , new Value ( '1.66180339887' , new Type ( 'decimal' ) ) ] , new ArrayType ( new Type ( 'decimal' ) ) ) ) ; }
It converts and normalizes sets to pg.

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