_propDict)) { if (is_a($this->_propDict["principalScopes"], "\Microsoft\Graph\Model\AccessReviewScope") || is_null($this->_propDict["principalScopes"])) { return $this->_propDict["principalScopes"]; } else { $this->_propDict["principalScopes"] = new AccessReviewScope($this->_propDict["principalScopes"]); return $this->_propDict["principalScopes"]; } } return null; } /** * Sets the principalScopes * Defines the scopes of the principals whose access to resources are reviewed in the access review. * * @param AccessReviewScope $val The value to assign to the principalScopes * * @return PrincipalResourceMembershipsScope The PrincipalResourceMembershipsScope */ public function setPrincipalScopes($val) { $this->_propDict["principalScopes"] = $val; return $this; } /** * Gets the resourceScopes * Defines the scopes of the resources for which access is reviewed. * * @return AccessReviewScope|null The resourceScopes */ public function getResourceScopes() { if (array_key_exists("resourceScopes", $this->_propDict)) { if (is_a($this->_propDict["resourceScopes"], "\Microsoft\Graph\Model\AccessReviewScope") || is_null($this->_propDict["resourceScopes"])) { return $this->_propDict["resourceScopes"]; } else { $this->_propDict["resourceScopes"] = new AccessReviewScope($this->_propDict["resourceScopes"]); return $this->_propDict["resourceScopes"]; } } return null; } /** * Sets the resourceScopes * Defines the scopes of the resources for which access is reviewed. * * @param AccessReviewScope $val The value to assign to the resourceScopes * * @return PrincipalResourceMembershipsScope The PrincipalResourceMembershipsScope */ public function setResourceScopes($val) { $this->_propDict["resourceScopes"] = $val; return $this; } }