_propDict)) { if (is_a($this->_propDict["activity"], "\Beta\Microsoft\Graph\Model\RiskUserActivity") || is_null($this->_propDict["activity"])) { return $this->_propDict["activity"]; } else { $this->_propDict["activity"] = new RiskUserActivity($this->_propDict["activity"]); return $this->_propDict["activity"]; } } return null; } /** * Sets the activity * The activity related to user risk level change. * * @param RiskUserActivity $val The activity * * @return RiskyUserHistoryItem */ public function setActivity($val) { $this->_propDict["activity"] = $val; return $this; } /** * Gets the initiatedBy * The id of actor that does the operation. * * @return string|null The initiatedBy */ public function getInitiatedBy() { if (array_key_exists("initiatedBy", $this->_propDict)) { return $this->_propDict["initiatedBy"]; } else { return null; } } /** * Sets the initiatedBy * The id of actor that does the operation. * * @param string $val The initiatedBy * * @return RiskyUserHistoryItem */ public function setInitiatedBy($val) { $this->_propDict["initiatedBy"] = $val; return $this; } /** * Gets the userId * The id of the user. * * @return string|null The userId */ public function getUserId() { if (array_key_exists("userId", $this->_propDict)) { return $this->_propDict["userId"]; } else { return null; } } /** * Sets the userId * The id of the user. * * @param string $val The userId * * @return RiskyUserHistoryItem */ public function setUserId($val) { $this->_propDict["userId"] = $val; return $this; } }