public function setConstraints($constraints)
    {
        foreach ($constraints as $fieldName => $v) {
            if (is_array($v)) {
                foreach ($v as $constraintFromArray) {
                    $this->setConstraint($fieldName, $constraintFromArray);
                }
            } else {
                $this->setConstraint($fieldName, $v);
            }
        }

        return $this;
    }
public function setConstraints($constraints)
    {
        foreach ($constraints as $fieldName => $v) {
            if (is_array($v)) {
                foreach ($v as $constraintFromArray) {
                    $this->setConstraint($fieldName, $constraintFromArray);
                }
            } else {
                $this->setConstraint($fieldName, $v);
            }
        }

        return $this;
    }
public function setConstraints ( $ constraints ) { foreach ( $ constraints as $ fieldName => $ v ) { if ( is_array ( $ v ) ) { foreach ( $ v as $ constraintFromArray ) { $ this -> setConstraint ( $ fieldName , $ constraintFromArray ) ; } } else { $ this -> setConstraint ( $ fieldName , $ v ) ; } } return $ this ; }
setConstraints - sets multiple constraints on this validator

@param array $constraints - $fieldName => ZenValidatorConstraint
@return $this
setConstraints - sets multiple constraints on this validator