public function toInt() { if (!$this->isInt()) { throw new SassNumberException('Not an integer: ' . $this->value, SassScriptParser::$context->node); } return intval($this->value); }