Identicon\Generator\BaseGenerator::setString PHP Method

setString() public method

Generate a hash from the original string.
public setString ( string $string )
$string string
    public function setString($string)
    {
        if (null === $string) {
            throw new Exception('The string cannot be null.');
        }
        $this->hash = md5($string);
        $this->convertHashToArrayOfBoolean();
        return $this;
    }