public function compare(Enum $arg) {
        if ($this->value == $arg->value) {
            return 0;
        } elseif ($this->value > $arg->value) {
            return -1;
        } else {
            return 1;
        }
    }
public function compare(Enum $arg) {
        if ($this->value == $arg->value) {
            return 0;
        } elseif ($this->value > $arg->value) {
            return -1;
        } else {
            return 1;
        }
    }
public function compare ( Enum $ arg ) { if ( $ this -> value == $ arg -> value ) { return 0 ; } elseif ( $ this -> value > $ arg -> value ) { return - 1 ; } else { return 1 ; } }
Compare two enums using numeric comparison

@param Enum $arg The enum to compare this instance to

@return int 0 if same, 1 if the argument is greater, -1 else
Compare two enums using numeric comparison