spec/Phn/Mapping/HierarchicalMapperSpec.php
function it_converts_and_normalizes_rows_to_pg($normalizer, $converter)
    {
        $this->setType('decimal', $converter, $normalizer);
        $this->setCompositeType('real', [
            'pi'  => 'decimal',
            'phi' => 'decimal'
        ]);

        $this
            ->toPg(
                [
                    'pi'  => (object) [
                        'value' => 3.14159265359
                    ],
                    'phi' => (object) [
                        'value' => 1.66180339887
                    ]
                ],
                'real'
            )
            ->shouldBeLike(new Row(
                [
                    'pi'  => new Value('3.14159265359', new Type('decimal')),
                    'phi' => new Value('1.66180339887', new Type('decimal'))
                ],
                new Type('real')
            ))
        ;
    }
function it_converts_and_normalizes_rows_to_pg($normalizer, $converter)
    {
        $this->setType('decimal', $converter, $normalizer);
        $this->setCompositeType('real', [
            'pi'  => 'decimal',
            'phi' => 'decimal'
        ]);

        $this
            ->toPg(
                [
                    'pi'  => (object) [
                        'value' => 3.14159265359
                    ],
                    'phi' => (object) [
                        'value' => 1.66180339887
                    ]
                ],
                'real'
            )
            ->shouldBeLike(new Row(
                [
                    'pi'  => new Value('3.14159265359', new Type('decimal')),
                    'phi' => new Value('1.66180339887', new Type('decimal'))
                ],
                new Type('real')
            ))
        ;
    }
function it_converts_and_normalizes_rows_to_pg ( $ normalizer , $ converter ) { $ this -> setType ( 'decimal' , $ converter , $ normalizer ) ; $ this -> setCompositeType ( 'real' , [ 'pi' => 'decimal' , 'phi' => 'decimal' ] ) ; $ this -> toPg ( [ 'pi' => ( object ) [ 'value' => 3.14159265359 ] , 'phi' => ( object ) [ 'value' => 1.66180339887 ] ] , 'real' ) -> shouldBeLike ( new Row ( [ 'pi' => new Value ( '3.14159265359' , new Type ( 'decimal' ) ) , 'phi' => new Value ( '1.66180339887' , new Type ( 'decimal' ) ) ] , new Type ( 'real' ) ) ) ; }
It converts and normalizes rows to pg.

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