original_string: public function setBlacklist($blacklist)
      {
          if (is_array($blacklist)) {
              $this->blacklist = array_map('strval', $blacklist);
          } elseif ($blacklist instanceof \ArrayObject && true) {
              $this->blacklist = array_map('strval', $blacklist->getArrayCopy());
          } elseif (is_string($blacklist)) {
              $this->blacklist = [];
              for ($i = 0; $i < strlen($blacklist); $i++) {
                  $this->blacklist[] = $blacklist[$i];
              }
          } else {
              throw new \Exception('Incorrect blacklist given. Allowed blacklist are: string, array or ArrayObject.');
          }
      }
code: public function setBlacklist($blacklist)
      {
          if (is_array($blacklist)) {
              $this->blacklist = array_map('strval', $blacklist);
          } elseif ($blacklist instanceof \ArrayObject && true) {
              $this->blacklist = array_map('strval', $blacklist->getArrayCopy());
          } elseif (is_string($blacklist)) {
              $this->blacklist = [];
              for ($i = 0; $i < strlen($blacklist); $i++) {
                  $this->blacklist[] = $blacklist[$i];
              }
          } else {
              throw new \Exception('Incorrect blacklist given. Allowed blacklist are: string, array or ArrayObject.');
          }
      }
code_tokens: public function setBlacklist ( $ blacklist ) { if ( is_array ( $ blacklist ) ) { $ this -> blacklist = array_map ( 'strval' , $ blacklist ) ; } elseif ( $ blacklist instanceof \ ArrayObject && true ) { $ this -> blacklist = array_map ( 'strval' , $ blacklist -> getArrayCopy ( ) ) ; } elseif ( is_string ( $ blacklist ) ) { $ this -> blacklist = [ ] ; for ( $ i = 0 ; $ i < strlen ( $ blacklist ) ; $ i ++ ) { $ this -> blacklist [ ] = $ blacklist [ $ i ] ; } } else { throw new \ Exception ( 'Incorrect blacklist given. Allowed blacklist are: string, array or ArrayObject.' ) ; } }
docstring: Set the blacklist of characters which are allowed for this field.
  This can either be an array or a string.
  
  @param array|\ArrayObject|string $blacklist
  @throws \Exception
docstring_tokens: Set the blacklist of characters which are allowed for this field . This can either be an array or a string .