SassColour::op_shiftl PHP Méthode

op_shiftl() public méthode

Colour bitwise Shift Left
public op_shiftl ( sassNumber $other ) : sassColour
$other sassNumber amount to shift left by
Résultat sassColour the colour result
    public function op_shiftl($other)
    {
        if (!$other instanceof SassNumber || !$other->isUnitless()) {
            throw new SassColourException('Number must be a unitless number', SassScriptParser::$context->node);
        }
        $this->red = $this->getRed() << $other->value;
        $this->green = $this->getGreen() << $other->value;
        $this->blue = $this->getBlue() << $other->value;
        return $this;
    }