_propDict)) { if (is_a($this->_propDict["rules"], "\Beta\Microsoft\Graph\Model\PlannerTaskRoleBasedRule") || is_null($this->_propDict["rules"])) { return $this->_propDict["rules"]; } else { $this->_propDict["rules"] = new PlannerTaskRoleBasedRule($this->_propDict["rules"]); return $this->_propDict["rules"]; } } return null; } /** * Sets the rules * The rules that should be enforced on the tasks when they're being changed outside of the scenario, based on the role of the caller. * * @param PlannerTaskRoleBasedRule $val The value to assign to the rules * * @return PlannerTaskPolicy The PlannerTaskPolicy */ public function setRules($val) { $this->_propDict["rules"] = $val; return $this; } }