public static function hash($data) {
        
        if(false === is_string($data) && false === is_numeric($data)) {
            return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string or number, "%s" given', __METHOD__, gettype($data)), E_USER_ERROR);
        }

        return hash(self :: HASH_ALGORITHM, $data);
    }
public static function hash($data) {
        
        if(false === is_string($data) && false === is_numeric($data)) {
            return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string or number, "%s" given', __METHOD__, gettype($data)), E_USER_ERROR);
        }

        return hash(self :: HASH_ALGORITHM, $data);
    }
public static function hash ( $ data ) { if ( false === is_string ( $ data ) && false === is_numeric ( $ data ) ) { return trigger_error ( sprintf ( 'Argument 1 passed to %s() must be of the type string or number, "%s" given' , __METHOD__ , gettype ( $ data ) ) , E_USER_ERROR ) ; } return hash ( self :: HASH_ALGORITHM , $ data ) ; }
Hashes text and returns it
@param string $data
@return string
Hashes text and returns it