public function setMaxChoices($maxChoices)
    {
        if (is_int($maxChoices) && $maxChoices !== 0) {

            if ($this->getMinChoices() > 0 && $maxChoices < $this->getMinChoices()) {
                $msg = "The 'maxChoices' argument must be greater than or equal to the 'minChoices' attribute.";
                throw new InvalidArgumentException($msg);
            }

            $this->maxChoices = $maxChoices;
        } else {
            $msg = "The 'maxChoices' argument must be a strictly negative or positive integer, '" . gettype($maxChoices) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }