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

        $this->toPg([[3.14159265359], [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_nested_sets_to_pg($converter)
    {
        $this->setType('decimal', $converter);

        $this->toPg([[3.14159265359], [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_nested_sets_to_pg ( $ converter ) { $ this -> setType ( 'decimal' , $ converter ) ; $ this -> toPg ( [ [ 3.14159265359 ] , [ 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 nested sets to pg.

@param \Phn\Mapping\Converter\ConverterInterface $converter
It converts nested sets to pg .