src/Cornford/Googlmapper/MapperBase.php
public function setRegion($value)
	{
		if (!is_string($value)) {
			throw new MapperArgumentException('Invalid map region.');
		}

		if (!in_array($value, $this->regions)) {
			throw new MapperArgumentException('Region is required in ISO 3166-1 code format.');
		}

		$this->region = $value;
	}
public function setRegion($value)
	{
		if (!is_string($value)) {
			throw new MapperArgumentException('Invalid map region.');
		}

		if (!in_array($value, $this->regions)) {
			throw new MapperArgumentException('Region is required in ISO 3166-1 code format.');
		}

		$this->region = $value;
	}
public function setRegion ( $ value ) { if ( ! is_string ( $ value ) ) { throw new MapperArgumentException ( 'Invalid map region.' ) ; } if ( ! in_array ( $ value , $ this -> regions ) ) { throw new MapperArgumentException ( 'Region is required in ISO 3166-1 code format.' ) ; } $ this -> region = $ value ; }
Set the Google Maps region.

@param string $value

@throws MapperArgumentException

@return void
Set the Google Maps region .