/** * Sets the encoded polyline value. * * @param string $value The encoded polyline value. * * @throws \Ivory\GoogleMap\Exception\OverlayException If the encoded polyline value is not valid. */ public function setValue($value) { if (!is_string($value)) { throw OverlayException::invalidEncodedPolylineValue(); } $this->value = $value; }