/** * Sets the width unit size. * * @param string $widthUnit The width unit size. * * @throws \Ivory\GoogleMap\Exception\BaseException If the width unit is not valid. */ public function setWidthUnit($widthUnit) { if (!is_string($widthUnit) && $widthUnit !== null) { throw BaseException::invalidSizeWidthUnit(); } $this->widthUnit = $widthUnit; }