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

        $this->widthUnit = $widthUnit;
    }