src/Ciconia/HashRegistry.php
public function register(Text $text)
    {
        $hash = $this->generateHash($text);
        $this->set($hash, $text);

        return new Text($hash);
    }
public function register(Text $text)
    {
        $hash = $this->generateHash($text);
        $this->set($hash, $text);

        return new Text($hash);
    }
Register a string to be hashed

@param Text $text The string to be hashed

@return string The hashed string