public function setSimpleMatchSets(SimpleMatchSetCollection $simpleMatchSets)
    {
        if (count($simpleMatchSets) === 2) {
            $this->simpleMatchSets = $simpleMatchSets;
        } else {
            $msg = "A MatchInteraction object must be composed of exactly two SimpleMatchSet objects.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setSimpleMatchSets(SimpleMatchSetCollection $simpleMatchSets)
    {
        if (count($simpleMatchSets) === 2) {
            $this->simpleMatchSets = $simpleMatchSets;
        } else {
            $msg = "A MatchInteraction object must be composed of exactly two SimpleMatchSet objects.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setSimpleMatchSets ( SimpleMatchSetCollection $ simpleMatchSets ) { if ( count ( $ simpleMatchSets ) === 2 ) { $ this -> simpleMatchSets = $ simpleMatchSets ; } else { $ msg = "A MatchInteraction object must be composed of exactly two SimpleMatchSet objects." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the set of choices. The first defines the source choices and the second one the
targets.

@param \qtism\data\content\interactions\SimpleMatchSetCollection $simpleMatchSets A collection of exactly two SimpleMatchSet objects.
@throws \InvalidArgumentException If $simpleMatchSets does not contain exactly two SimpleMatchSet objects.
Set the set of choices . The first defines the source choices and the second one the targets .