SassColour::op_shiftr PHP Метод

op_shiftr() публичный Метод

Colour bitwise Shift Right
public op_shiftr ( sassNumber $other ) : sassColour
$other sassNumber amount to shift right by
Результат sassColour the colour result
    public function op_shiftr($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;
    }