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

        $this
            ->fromPg(
                [
                    'pi'  => '3.14159265359',
                    'phi' => '1.66180339887'
                ],
                'real'
            )
            ->shouldBeLike([
                'pi'  => 3.14159265359,
                'phi' => 1.66180339887
            ])
        ;
    }
function it_converts_rows_from_pg($converter)
    {
        $this->setType('decimal', $converter);
        $this->setCompositeType('real', [
            'pi'  => 'decimal',
            'phi' => 'decimal'
        ]);

        $this
            ->fromPg(
                [
                    'pi'  => '3.14159265359',
                    'phi' => '1.66180339887'
                ],
                'real'
            )
            ->shouldBeLike([
                'pi'  => 3.14159265359,
                'phi' => 1.66180339887
            ])
        ;
    }
function it_converts_rows_from_pg ( $ converter ) { $ this -> setType ( 'decimal' , $ converter ) ; $ this -> setCompositeType ( 'real' , [ 'pi' => 'decimal' , 'phi' => 'decimal' ] ) ; $ this -> fromPg ( [ 'pi' => '3.14159265359' , 'phi' => '1.66180339887' ] , 'real' ) -> shouldBeLike ( [ 'pi' => 3.14159265359 , 'phi' => 1.66180339887 ] ) ; }
It converts rows from pg.

@param \Phn\Mapping\Converter\ConverterInterface $converter
It converts rows from pg .