SassNumber::hasLegalUnits PHP Method

hasLegalUnits() public method

Returns a value indicating if this number has units that can be represented in CSS.
public hasLegalUnits ( ) : boolean
return boolean true if this number has units that can be represented in CSS, false if not
    public function hasLegalUnits()
    {
        return (empty($this->numeratorUnits) || count($this->numeratorUnits) === 1) && empty($this->denominatorUnits);
    }