private function passes_key_validation($status, $messageid) {
        // The validation result is tested in a bitwise operation.
        if ((
            $status & ~ \core\message\inbound\address_manager::VALIDATION_SUCCESS
                    & ~ \core\message\inbound\address_manager::VALIDATION_UNKNOWN_DATAKEY
                    & ~ \core\message\inbound\address_manager::VALIDATION_EXPIRED_DATAKEY
                    & ~ \core\message\inbound\address_manager::VALIDATION_INVALID_HASH
                    & ~ \core\message\inbound\address_manager::VALIDATION_ADDRESS_MISMATCH) !== 0) {

            // One of the above bits was found in the status - fail the validation.
            return false;
        }
        return true;
    }
private function passes_key_validation($status, $messageid) {
        // The validation result is tested in a bitwise operation.
        if ((
            $status & ~ \core\message\inbound\address_manager::VALIDATION_SUCCESS
                    & ~ \core\message\inbound\address_manager::VALIDATION_UNKNOWN_DATAKEY
                    & ~ \core\message\inbound\address_manager::VALIDATION_EXPIRED_DATAKEY
                    & ~ \core\message\inbound\address_manager::VALIDATION_INVALID_HASH
                    & ~ \core\message\inbound\address_manager::VALIDATION_ADDRESS_MISMATCH) !== 0) {

            // One of the above bits was found in the status - fail the validation.
            return false;
        }
        return true;
    }
private function passes_key_validation ( $ status , $ messageid ) { // The validation result is tested in a bitwise operation. if ( ( $ status & ~ \ core \ message \ inbound \ address_manager :: VALIDATION_SUCCESS & ~ \ core \ message \ inbound \ address_manager :: VALIDATION_UNKNOWN_DATAKEY & ~ \ core \ message \ inbound \ address_manager :: VALIDATION_EXPIRED_DATAKEY & ~ \ core \ message \ inbound \ address_manager :: VALIDATION_INVALID_HASH & ~ \ core \ message \ inbound \ address_manager :: VALIDATION_ADDRESS_MISMATCH ) !== 0 ) { // One of the above bits was found in the status - fail the validation. return false ; } return true ; }
Check whether the key provided is valid.

@param bool $status
@param mixed $messageid The Hore message Uid
@return bool
Check whether the key provided is valid .