src/Base/Size.php
public function setWidthUnit($widthUnit)
    {
        if (!is_string($widthUnit) && ($widthUnit !== null)) {
            throw BaseException::invalidSizeWidthUnit();
        }

        $this->widthUnit = $widthUnit;
    }
public function setWidthUnit($widthUnit)
    {
        if (!is_string($widthUnit) && ($widthUnit !== null)) {
            throw BaseException::invalidSizeWidthUnit();
        }

        $this->widthUnit = $widthUnit;
    }
Sets the width unit size.

@param string $widthUnit The width unit size.

@throws \Ivory\GoogleMap\Exception\BaseException If the width unit is not valid.