_propDict)) { return $this->_propDict["reason"]; } else { return null; } } /** * Sets the reason * The user's justification for requiring access to the app. Supports $filter (eq only) and $orderby. * * @param string $val The reason * * @return UserConsentRequest */ public function setReason($val) { $this->_propDict["reason"] = $val; return $this; } /** * Gets the approval * Approval decisions associated with a request. * * @return Approval|null The approval */ public function getApproval() { if (array_key_exists("approval", $this->_propDict)) { if (is_a($this->_propDict["approval"], "\Microsoft\Graph\Model\Approval") || is_null($this->_propDict["approval"])) { return $this->_propDict["approval"]; } else { $this->_propDict["approval"] = new Approval($this->_propDict["approval"]); return $this->_propDict["approval"]; } } return null; } /** * Sets the approval * Approval decisions associated with a request. * * @param Approval $val The approval * * @return UserConsentRequest */ public function setApproval($val) { $this->_propDict["approval"] = $val; return $this; } }