Пример #1
0
 /**
  * String multiplication.
  * this is repeated other times
  *
  * @param Number $other the number of times to repeat this
  * @return SassString the string result
  * @throws StringException
  */
 public function op_times($other)
 {
     if (!$other instanceof Number || !$other->isUnitless()) {
         throw new StringException('Value must be a unitless number', \PHPSass\Script\Parser::$context->node);
     }
     $this->value = str_repeat($this->value, $other->value);
     return $this;
 }