public function setHash($hash)
    {
      if(!is_string($hash) || strlen(trim($hash)) == 0)
        throw new InvalidArgumentException(__METHOD__ . '; Invalid hash, must be a non empty string');

      $this->hash = $hash;
    }
public function setHash($hash)
    {
      if(!is_string($hash) || strlen(trim($hash)) == 0)
        throw new InvalidArgumentException(__METHOD__ . '; Invalid hash, must be a non empty string');

      $this->hash = $hash;
    }
public function setHash ( $ hash ) { if ( ! is_string ( $ hash ) || strlen ( trim ( $ hash ) ) == 0 ) throw new InvalidArgumentException ( __METHOD__ . '; Invalid hash, must be a non empty string' ) ; $ this -> hash = $ hash ; }
Set hash of this User

@param string $hash
@return void
Set hash of this User