public function setString($string) { $this->string = $string; $this->hash = sha1($this->string); return $this; }