setODataType("#microsoft.graph.accessPackageMultipleChoiceQuestion"); } /** * Gets the allowsMultipleSelection * Indicates whether requestor can select multiple choices as their answer. * * @return bool|null The allowsMultipleSelection */ public function getAllowsMultipleSelection() { if (array_key_exists("allowsMultipleSelection", $this->_propDict)) { return $this->_propDict["allowsMultipleSelection"]; } else { return null; } } /** * Sets the allowsMultipleSelection * Indicates whether requestor can select multiple choices as their answer. * * @param bool $val The value of the allowsMultipleSelection * * @return AccessPackageMultipleChoiceQuestion */ public function setAllowsMultipleSelection($val) { $this->_propDict["allowsMultipleSelection"] = $val; return $this; } /** * Gets the choices * List of answer choices. * * @return AccessPackageAnswerChoice|null The choices */ public function getChoices() { if (array_key_exists("choices", $this->_propDict)) { if (is_a($this->_propDict["choices"], "\Beta\Microsoft\Graph\Model\AccessPackageAnswerChoice") || is_null($this->_propDict["choices"])) { return $this->_propDict["choices"]; } else { $this->_propDict["choices"] = new AccessPackageAnswerChoice($this->_propDict["choices"]); return $this->_propDict["choices"]; } } return null; } /** * Sets the choices * List of answer choices. * * @param AccessPackageAnswerChoice $val The value to assign to the choices * * @return AccessPackageMultipleChoiceQuestion The AccessPackageMultipleChoiceQuestion */ public function setChoices($val) { $this->_propDict["choices"] = $val; return $this; } }