value = $n; } function cmp(Comparable_Interface $other) { if ($this->value < $other->value) return -1; elseif ($this->value > $other->value) return 1; else return 0; } function as_int() { return $this->value; } }