code: public function register(Text $text)
      {
          $hash = $this->generateHash($text);
          $this->set($hash, $text);
  
          return new Text($hash);
      }
docs: Register a string to be hashed
  
  @param Text $text The string to be hashed
  
  @return string The hashed string