Set the ordered list of choices that are displayed to the user.

@param \qtism\data\content\interactions\SimpleChoiceCollection $simpleChoices A list of at lease one SimpleChoice object.
@throws InvalidArgumentException If $simpleChoices is empty.
339203
public function setSimpleChoices(SimpleChoiceCollection $simpleChoices)
    {
        if (count($simpleChoices) > 0) {
            $this->simpleChoices = $simpleChoices;
        } else {
            $msg = "An OrderInteraction object must be composed of at lease one SimpleChoice object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
834773
public function setOptions ($options)
    {
        if ($this->hasBeenOpened()) {
            throw new CAS_OutOfSequenceException(
                'Cannot set options, stream already opened.'
            );
        }
        if (!is_int($options)) {
            throw new CAS_InvalidArgumentException('Invalid options.');
        }

        $this->_options = $options;
    }
1112076
public function setArguments(array $arguments)
    {
        $options = [];
        if (!empty($arguments)) {
            if (
                !$this->checkFixedArray($arguments, count($arguments) > 1 ? 2 : 1) ||
                !is_numeric($arguments[0]) ||
                (isset($arguments[1]) && !is_array($arguments[1]))
            ) {
                throw new InvalidCommandArgumentException($this, $arguments);
            }

            if (isset($arguments[1])) {
                $options = $arguments[1];
                $this->checkOptionsInt($options, ['count']);
                $this->checkOptionsString($options, ['queue', 'reply']);
                $this->checkOptionsArray($options, ['state']);
            }
        }

        $this->arguments = array_merge([
            !empty($arguments) ? (int) $arguments[0] : 0
        ], $this->toArguments($options));
    }
1084726
protected function set_choiceorder($group, $choiceorder) {
        foreach ($choiceorder as $key => $value) {
            $this->choiceorder[$group][$key + 1] = $value;
        }
    }
727513
public function setOptions($options)
    {
        if (!is_int($options) && !is_null($options)) {
            throw new InvalidArgumentException('Invalid options.');
        }

        $this->options = $options ?: 0;

        $this->handleChangedParameters();

        return $this;
    }
1075258
protected function set_choices() {
		if ( ! is_array( $this->choices ) ) {
			$this->choices = (array) $this->choices;
		}
		if ( ! isset( $this->choices['save_as'] ) ) {
			$this->choices['save_as'] = 'url';
		}
		if ( ! isset( $this->choices['labels'] ) ) {
			$this->choices['labels'] = [];
		}
		$this->set_button_labels();
		$this->choices['labels'] = wp_parse_args( $this->choices['labels'], $this->button_labels );
	}
964388
public function setContent(InlineChoiceCollection $content)
    {
        if (count($content) > 0) {
            $this->content = $content;
        } else {
            $msg = "An InlineChoiceInteraction must be composed by at lease one InlineChoice object, none given.";
            throw new InvalidArgumentException($msg);
        }
    }
218068
public function addOrders( $orders )
	{
		if( !is_array( $orders ) )
			throw new InvalidArgumentException( 'An Array should be given.' );
		foreach( $orders as $column => $direction )
			$this->addOrder( $column, $direction );
	}
1244226
protected function set_choices() {
		$this->choices['controls'] = [];
		if ( is_array( $this->default ) ) {
			foreach ( $this->default as $key => $value ) {
				$this->choices['controls'][ $key ] = true;
			}
		}
	}
792480
public function setViews(ViewCollection $views)
    {
        if (count($views) > 0) {
            $this->views = $views;
        } else {
            $msg = "A RubricBlock object must contain at least one View.";
            throw new InvalidArgumentException($msg);
        }
    }
559085
private function setListOperator($listOperator, array $values)
    {
        if (empty($listOperator)) {
            throw new InvalidArgumentException('The list operator must not' .
                ' be null or empty.');
        }

        if (empty($values)) {
            throw new InvalidArgumentException('The list of values must not' .
                ' be null or empty.');
        }

        $this->listOperator = $listOperator;
        $this->listValues = $values;
    }
212924
public function setOptions(array $options) : void
    {
        self::$options = array_unique(array_merge(self::$options, $options));
    }
1117822
protected function addNewTagsInChoices(array $choices, array $allChoices, array $values, $isGrouped)
    {
        foreach ($values as $value) {
            if (!\in_array($value, $allChoices)) {
                if ($isGrouped) {
                    $choices['-------'][$value] = $value;
                } else {
                    $choices[$value] = $value;
                }
            }
        }

        return $choices;
    }
69298
public function setRevisions(array $revisions)
    {
        $this->revisions = new ArrayCollection();

        /** @var \Rcm\Entity\Revision $revision */
        foreach ($revisions as $revision) {
            if (!$revision instanceof Revision) {
                throw new InvalidArgumentException(
                    "Invalid Revision passed in.  Unable to set array"
                );
            }

            $this->revisions->set($revision->getRevisionId(), $revision);
        }
    }
731460
public function setAcceptedCardinalities(array $acceptedCardinalities)
    {
        foreach ($acceptedCardinalities as $cardinality) {
            if (!in_array($cardinality, OperatorCardinality::asArray(), true)) {
                $msg = "Accepted cardinalities must be values from the Cardinality enumeration, '" . $cardinality . "' given";
                throw new InvalidArgumentException($msg);
            }
        }

        $this->acceptedCardinalities = $acceptedCardinalities;
    }
1072446
protected function set_choices() {
		if ( ! is_array( $this->choices ) ) {
			$this->choices = [];
		}
		if ( ! isset( $this->choices['element'] ) ) {
			$this->choices['element'] = 'input';
		}
	}
1215996
public void setChoices(com.google.api.ads.admanager.axis.v201808.ListStringCreativeTemplateVariableVariableChoice[] choices) {
        this.choices = choices;
    }