_propDict)) { return $this->_propDict["membershipRule"]; } else { return null; } } /** * Sets the membershipRule * If a group ID is provided, the value is the membership rule for the group. If a group ID isn't provided, the value is the membership rule that was provided as a parameter. For more information, see Dynamic membership rules for groups in Microsoft Entra ID. * * @param string $val The value of the membershipRule * * @return EvaluateDynamicMembershipResult */ public function setMembershipRule($val) { $this->_propDict["membershipRule"] = $val; return $this; } /** * Gets the membershipRuleEvaluationDetails * Provides a detailed analysis of the membership evaluation result. * * @return ExpressionEvaluationDetails|null The membershipRuleEvaluationDetails */ public function getMembershipRuleEvaluationDetails() { if (array_key_exists("membershipRuleEvaluationDetails", $this->_propDict)) { if (is_a($this->_propDict["membershipRuleEvaluationDetails"], "\Beta\Microsoft\Graph\Model\ExpressionEvaluationDetails") || is_null($this->_propDict["membershipRuleEvaluationDetails"])) { return $this->_propDict["membershipRuleEvaluationDetails"]; } else { $this->_propDict["membershipRuleEvaluationDetails"] = new ExpressionEvaluationDetails($this->_propDict["membershipRuleEvaluationDetails"]); return $this->_propDict["membershipRuleEvaluationDetails"]; } } return null; } /** * Sets the membershipRuleEvaluationDetails * Provides a detailed analysis of the membership evaluation result. * * @param ExpressionEvaluationDetails $val The value to assign to the membershipRuleEvaluationDetails * * @return EvaluateDynamicMembershipResult The EvaluateDynamicMembershipResult */ public function setMembershipRuleEvaluationDetails($val) { $this->_propDict["membershipRuleEvaluationDetails"] = $val; return $this; } /** * Gets the membershipRuleEvaluationResult * The value is true if the user or device is a member of the group. The value can also be true if a membership rule was provided and the user or device passes the rule evaluation; otherwise false. * * @return bool|null The membershipRuleEvaluationResult */ public function getMembershipRuleEvaluationResult() { if (array_key_exists("membershipRuleEvaluationResult", $this->_propDict)) { return $this->_propDict["membershipRuleEvaluationResult"]; } else { return null; } } /** * Sets the membershipRuleEvaluationResult * The value is true if the user or device is a member of the group. The value can also be true if a membership rule was provided and the user or device passes the rule evaluation; otherwise false. * * @param bool $val The value of the membershipRuleEvaluationResult * * @return EvaluateDynamicMembershipResult */ public function setMembershipRuleEvaluationResult($val) { $this->_propDict["membershipRuleEvaluationResult"] = $val; return $this; } }