_propDict)) { return $this->_propDict["offsetInDays"]; } else { return null; } } /** * Sets the offsetInDays * How many days before or after the time-based attribute specified the workflow should trigger. For example, if the attribute is employeeHireDate and offsetInDays is -1, then the workflow should trigger one day before the employee hire date. The value can range between -180 and 180 days. * * @param int $val The value of the offsetInDays * * @return TimeBasedAttributeTrigger */ public function setOffsetInDays($val) { $this->_propDict["offsetInDays"] = $val; return $this; } /** * Gets the timeBasedAttribute * Determines which time-based identity property to reference. The possible values are: employeeHireDate, employeeLeaveDateTime, createdDateTime, unknownFutureValue. * * @return WorkflowTriggerTimeBasedAttribute|null The timeBasedAttribute */ public function getTimeBasedAttribute() { if (array_key_exists("timeBasedAttribute", $this->_propDict)) { if (is_a($this->_propDict["timeBasedAttribute"], "\Microsoft\Graph\IdentityGovernanceNamespace\Model\WorkflowTriggerTimeBasedAttribute") || is_null($this->_propDict["timeBasedAttribute"])) { return $this->_propDict["timeBasedAttribute"]; } else { $this->_propDict["timeBasedAttribute"] = new WorkflowTriggerTimeBasedAttribute($this->_propDict["timeBasedAttribute"]); return $this->_propDict["timeBasedAttribute"]; } } return null; } /** * Sets the timeBasedAttribute * Determines which time-based identity property to reference. The possible values are: employeeHireDate, employeeLeaveDateTime, createdDateTime, unknownFutureValue. * * @param WorkflowTriggerTimeBasedAttribute $val The value to assign to the timeBasedAttribute * * @return TimeBasedAttributeTrigger The TimeBasedAttributeTrigger */ public function setTimeBasedAttribute($val) { $this->_propDict["timeBasedAttribute"] = $val; return $this; } }