_propDict)) { if (is_a($this->_propDict["category"], "\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleTaskCategory") || is_null($this->_propDict["category"])) { return $this->_propDict["category"]; } else { $this->_propDict["category"] = new LifecycleTaskCategory($this->_propDict["category"]); return $this->_propDict["category"]; } } return null; } /** * Sets the category * The category of the HR function that the tasks created using this definition can be used with. The possible values are: joiner, mover, leaver, unknownFutureValue. This is a multi-valued enumeration whose allowed combinations are joiner, joiner,leaver, or leaver.Supports $filter(eq, ne, has) and $orderby. * * @param LifecycleTaskCategory $val The category * * @return TaskDefinition */ public function setCategory($val) { $this->_propDict["category"] = $val; return $this; } /** * Gets the continueOnError * * @return bool|null The continueOnError */ public function getContinueOnError() { if (array_key_exists("continueOnError", $this->_propDict)) { return $this->_propDict["continueOnError"]; } else { return null; } } /** * Sets the continueOnError * * @param bool $val The continueOnError * * @return TaskDefinition */ public function setContinueOnError($val) { $this->_propDict["continueOnError"] = boolval($val); return $this; } /** * Gets the description * The description of the taskDefinition. * * @return string|null The description */ public function getDescription() { if (array_key_exists("description", $this->_propDict)) { return $this->_propDict["description"]; } else { return null; } } /** * Sets the description * The description of the taskDefinition. * * @param string $val The description * * @return TaskDefinition */ public function setDescription($val) { $this->_propDict["description"] = $val; return $this; } /** * Gets the displayName * The display name of the taskDefinition.Supports $filter(eq, ne) and $orderby. * * @return string|null The displayName */ public function getDisplayName() { if (array_key_exists("displayName", $this->_propDict)) { return $this->_propDict["displayName"]; } else { return null; } } /** * Sets the displayName * The display name of the taskDefinition.Supports $filter(eq, ne) and $orderby. * * @param string $val The displayName * * @return TaskDefinition */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the parameters * The parameters that must be supplied when creating a workflow task object.Supports $filter(any). * * @return array|null The parameters */ public function getParameters() { if (array_key_exists("parameters", $this->_propDict)) { return $this->_propDict["parameters"]; } else { return null; } } /** * Sets the parameters * The parameters that must be supplied when creating a workflow task object.Supports $filter(any). * * @param Parameter[] $val The parameters * * @return TaskDefinition */ public function setParameters($val) { $this->_propDict["parameters"] = $val; return $this; } /** * Gets the version * The version number of the taskDefinition. New records are pushed when we add support for new parameters.Supports $filter(ge, gt, le, lt, eq, ne) and $orderby. * * @return int|null The version */ public function getVersion() { if (array_key_exists("version", $this->_propDict)) { return $this->_propDict["version"]; } else { return null; } } /** * Sets the version * The version number of the taskDefinition. New records are pushed when we add support for new parameters.Supports $filter(ge, gt, le, lt, eq, ne) and $orderby. * * @param int $val The version * * @return TaskDefinition */ public function setVersion($val) { $this->_propDict["version"] = intval($val); return $this; } }