public static function fromString($native, $separator = ',')
    {
        $values = explode($separator, $native, 4);

        if (count($values) !== 4) {
            throw new \InvalidArgumentException(
                sprintf('LatLngBounds can not be created from string "%s"', $native)
            );
        }

        return new LatLngBounds(
            new LatLng($values[0], $values[1]),
            new LatLng($values[2], $values[3])
        );
    }
public static function fromString($native, $separator = ',')
    {
        $values = explode($separator, $native, 4);

        if (count($values) !== 4) {
            throw new \InvalidArgumentException(
                sprintf('LatLngBounds can not be created from string "%s"', $native)
            );
        }

        return new LatLngBounds(
            new LatLng($values[0], $values[1]),
            new LatLng($values[2], $values[3])
        );
    }
public static function fromString ( $ native , $ separator = ',' ) { $ values = explode ( $ separator , $ native , 4 ) ; if ( count ( $ values ) !== 4 ) { throw new \ InvalidArgumentException ( sprintf ( 'LatLngBounds can not be created from string "%s"' , $ native ) ) ; } return new LatLngBounds ( new LatLng ( $ values [ 0 ] , $ values [ 1 ] ) , new LatLng ( $ values [ 2 ] , $ values [ 3 ] ) ) ; }
Create from a string format.

@param string $native    Bounds string representation.
@param string $separator Separator string of each value.

@return LatLngBounds
@throws \InvalidArgumentException If an invalid value is given.
Create from a string format .