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