public function sameValueAs($other_value)
    {
        $null_value = $this->attribute->getNullValue();
        if ($null_value === $this->getValue() && $null_value === $other_value) {
            return true;
        }

        $validation_result = $this->getAttribute()->getValidator()->validate($other_value);
        if ($validation_result->getSeverity() !== IncidentInterface::SUCCESS) {
            return false;
        }

        return $this->valueEquals($validation_result->getSanitizedValue());
    }
public function sameValueAs($other_value)
    {
        $null_value = $this->attribute->getNullValue();
        if ($null_value === $this->getValue() && $null_value === $other_value) {
            return true;
        }

        $validation_result = $this->getAttribute()->getValidator()->validate($other_value);
        if ($validation_result->getSeverity() !== IncidentInterface::SUCCESS) {
            return false;
        }

        return $this->valueEquals($validation_result->getSanitizedValue());
    }
public function sameValueAs ( $ other_value ) { $ null_value = $ this -> attribute -> getNullValue ( ) ; if ( $ null_value === $ this -> getValue ( ) && $ null_value === $ other_value ) { return true ; } $ validation_result = $ this -> getAttribute ( ) -> getValidator ( ) -> validate ( $ other_value ) ; if ( $ validation_result -> getSeverity ( ) !== IncidentInterface :: SUCCESS ) { return false ; } return $ this -> valueEquals ( $ validation_result -> getSanitizedValue ( ) ) ; }
Tells whether a specific ValueHolderInterface instance's value is
considered equal to the given value.

@param mixed $other_value

@return boolean
Tells whether a specific ValueHolderInterface instance s value is considered equal to the given value .