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