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.');
        }
    }
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.');
        }
    }
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.' ) ; } }
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
Set the blacklist of characters which are allowed for this field . This can either be an array or a string .