setODataType("#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions"); } /** * Gets the scope * Defines who the workflow runs for. * * @return \Microsoft\Graph\Model\SubjectSet|null The scope */ public function getScope() { if (array_key_exists("scope", $this->_propDict)) { if (is_a($this->_propDict["scope"], "\Microsoft\Graph\Model\SubjectSet") || is_null($this->_propDict["scope"])) { return $this->_propDict["scope"]; } else { $this->_propDict["scope"] = new \Microsoft\Graph\Model\SubjectSet($this->_propDict["scope"]); return $this->_propDict["scope"]; } } return null; } /** * Sets the scope * Defines who the workflow runs for. * * @param \Microsoft\Graph\Model\SubjectSet $val The value to assign to the scope * * @return TriggerAndScopeBasedConditions The TriggerAndScopeBasedConditions */ public function setScope($val) { $this->_propDict["scope"] = $val; return $this; } /** * Gets the trigger * What triggers a workflow to run. * * @return WorkflowExecutionTrigger|null The trigger */ public function getTrigger() { if (array_key_exists("trigger", $this->_propDict)) { if (is_a($this->_propDict["trigger"], "\Microsoft\Graph\IdentityGovernanceNamespace\Model\WorkflowExecutionTrigger") || is_null($this->_propDict["trigger"])) { return $this->_propDict["trigger"]; } else { $this->_propDict["trigger"] = new WorkflowExecutionTrigger($this->_propDict["trigger"]); return $this->_propDict["trigger"]; } } return null; } /** * Sets the trigger * What triggers a workflow to run. * * @param WorkflowExecutionTrigger $val The value to assign to the trigger * * @return TriggerAndScopeBasedConditions The TriggerAndScopeBasedConditions */ public function setTrigger($val) { $this->_propDict["trigger"] = $val; return $this; } }