public function equals(ColumnDefaultValue $other)
    {
        if ($this->getType() != $other->getType()) {
            return false;
        }
        if ($this == $other) {
            return true;
        }
        // special case for current timestamp
        $equivalents = array('CURRENT_TIMESTAMP', 'NOW()');
        if (in_array(strtoupper($this->getValue()), $equivalents) && in_array(strtoupper($other->getValue()), $equivalents)) {
            return true;
        }

        return false; // Can't help, they are different
    }
public function equals(ColumnDefaultValue $other)
    {
        if ($this->getType() != $other->getType()) {
            return false;
        }
        if ($this == $other) {
            return true;
        }
        // special case for current timestamp
        $equivalents = array('CURRENT_TIMESTAMP', 'NOW()');
        if (in_array(strtoupper($this->getValue()), $equivalents) && in_array(strtoupper($other->getValue()), $equivalents)) {
            return true;
        }

        return false; // Can't help, they are different
    }
public function equals ( ColumnDefaultValue $ other ) { if ( $ this -> getType ( ) != $ other -> getType ( ) ) { return false ; } if ( $ this == $ other ) { return true ; } // special case for current timestamp $ equivalents = array ( 'CURRENT_TIMESTAMP' , 'NOW()' ) ; if ( in_array ( strtoupper ( $ this -> getValue ( ) ) , $ equivalents ) && in_array ( strtoupper ( $ other -> getValue ( ) ) , $ equivalents ) ) { return true ; } return false ; // Can't help, they are different }
A method to compare if two Default values match

@param ColumnDefaultValue $other The value to compare to

@return boolean Whether this object represents same default value as $other
@author     Niklas Närhinen <niklas@narhinen.net>
A method to compare if two Default values match