public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        if (!$value) {
            return null;
        }

        if ($platform instanceof MySqlPlatform) {
            $data = sscanf($value, 'POINT(%f %f)');
        } else {
            $data = sscanf($value, "(%f,%f)");
        }

        return new Point($data[0], $data[1]);
    }
public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        if (!$value) {
            return null;
        }

        if ($platform instanceof MySqlPlatform) {
            $data = sscanf($value, 'POINT(%f %f)');
        } else {
            $data = sscanf($value, "(%f,%f)");
        }

        return new Point($data[0], $data[1]);
    }
public function convertToPHPValue ( $ value , AbstractPlatform $ platform ) { if ( ! $ value ) { return null ; } if ( $ platform instanceof MySqlPlatform ) { $ data = sscanf ( $ value , 'POINT(%f %f)' ) ; } else { $ data = sscanf ( $ value , "(%f,%f)" ) ; } return new Point ( $ data [ 0 ] , $ data [ 1 ] ) ; }
Converts SQL value to the PHP representation.

@param string           $value    value in DB format
@param AbstractPlatform $platform DB platform

@return Point
Converts SQL value to the PHP representation .