_propDict)) { return $this->_propDict["assignees"]; } else { return null; } } /** * Sets the assignees * A collection of user identities the task is assigned to. * * @param WorkbookEmailIdentity[] $val The assignees * * @return WorkbookDocumentTask */ public function setAssignees($val) { $this->_propDict["assignees"] = $val; return $this; } /** * Gets the completedBy * The identity of the user who completed the task. Nullable. * * @return WorkbookEmailIdentity|null The completedBy */ public function getCompletedBy() { if (array_key_exists("completedBy", $this->_propDict)) { if (is_a($this->_propDict["completedBy"], "\Beta\Microsoft\Graph\Model\WorkbookEmailIdentity") || is_null($this->_propDict["completedBy"])) { return $this->_propDict["completedBy"]; } else { $this->_propDict["completedBy"] = new WorkbookEmailIdentity($this->_propDict["completedBy"]); return $this->_propDict["completedBy"]; } } return null; } /** * Sets the completedBy * The identity of the user who completed the task. Nullable. * * @param WorkbookEmailIdentity $val The completedBy * * @return WorkbookDocumentTask */ public function setCompletedBy($val) { $this->_propDict["completedBy"] = $val; return $this; } /** * Gets the completedDateTime * Date and time when the task was completed. Nullable. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @return \DateTime|null The completedDateTime */ public function getCompletedDateTime() { if (array_key_exists("completedDateTime", $this->_propDict)) { if (is_a($this->_propDict["completedDateTime"], "\DateTime") || is_null($this->_propDict["completedDateTime"])) { return $this->_propDict["completedDateTime"]; } else { $this->_propDict["completedDateTime"] = new \DateTime($this->_propDict["completedDateTime"]); return $this->_propDict["completedDateTime"]; } } return null; } /** * Sets the completedDateTime * Date and time when the task was completed. Nullable. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @param \DateTime $val The completedDateTime * * @return WorkbookDocumentTask */ public function setCompletedDateTime($val) { $this->_propDict["completedDateTime"] = $val; return $this; } /** * Gets the createdBy * A user identity that creates the task. Nullable. * * @return WorkbookEmailIdentity|null The createdBy */ public function getCreatedBy() { if (array_key_exists("createdBy", $this->_propDict)) { if (is_a($this->_propDict["createdBy"], "\Beta\Microsoft\Graph\Model\WorkbookEmailIdentity") || is_null($this->_propDict["createdBy"])) { return $this->_propDict["createdBy"]; } else { $this->_propDict["createdBy"] = new WorkbookEmailIdentity($this->_propDict["createdBy"]); return $this->_propDict["createdBy"]; } } return null; } /** * Sets the createdBy * A user identity that creates the task. Nullable. * * @param WorkbookEmailIdentity $val The createdBy * * @return WorkbookDocumentTask */ public function setCreatedBy($val) { $this->_propDict["createdBy"] = $val; return $this; } /** * Gets the createdDateTime * Date and time when the task was created. Nullable. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @return \DateTime|null The createdDateTime */ public function getCreatedDateTime() { if (array_key_exists("createdDateTime", $this->_propDict)) { if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { return $this->_propDict["createdDateTime"]; } else { $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); return $this->_propDict["createdDateTime"]; } } return null; } /** * Sets the createdDateTime * Date and time when the task was created. Nullable. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @param \DateTime $val The createdDateTime * * @return WorkbookDocumentTask */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $val; return $this; } /** * Gets the percentComplete * An integer value from 0 to 100 that represents the percentage of the completion of the task. 100 means that the task is completed. Nullable. * * @return int|null The percentComplete */ public function getPercentComplete() { if (array_key_exists("percentComplete", $this->_propDict)) { return $this->_propDict["percentComplete"]; } else { return null; } } /** * Sets the percentComplete * An integer value from 0 to 100 that represents the percentage of the completion of the task. 100 means that the task is completed. Nullable. * * @param int $val The percentComplete * * @return WorkbookDocumentTask */ public function setPercentComplete($val) { $this->_propDict["percentComplete"] = intval($val); return $this; } /** * Gets the priority * An integer value from 0 to 10 that represents the priority of the task. A lower value indicates a higher priority. Nullable. * * @return int|null The priority */ public function getPriority() { if (array_key_exists("priority", $this->_propDict)) { return $this->_propDict["priority"]; } else { return null; } } /** * Sets the priority * An integer value from 0 to 10 that represents the priority of the task. A lower value indicates a higher priority. Nullable. * * @param int $val The priority * * @return WorkbookDocumentTask */ public function setPriority($val) { $this->_propDict["priority"] = intval($val); return $this; } /** * Gets the startAndDueDateTime * Start and due date of the task. Nullable. * * @return WorkbookDocumentTaskSchedule|null The startAndDueDateTime */ public function getStartAndDueDateTime() { if (array_key_exists("startAndDueDateTime", $this->_propDict)) { if (is_a($this->_propDict["startAndDueDateTime"], "\Beta\Microsoft\Graph\Model\WorkbookDocumentTaskSchedule") || is_null($this->_propDict["startAndDueDateTime"])) { return $this->_propDict["startAndDueDateTime"]; } else { $this->_propDict["startAndDueDateTime"] = new WorkbookDocumentTaskSchedule($this->_propDict["startAndDueDateTime"]); return $this->_propDict["startAndDueDateTime"]; } } return null; } /** * Sets the startAndDueDateTime * Start and due date of the task. Nullable. * * @param WorkbookDocumentTaskSchedule $val The startAndDueDateTime * * @return WorkbookDocumentTask */ public function setStartAndDueDateTime($val) { $this->_propDict["startAndDueDateTime"] = $val; return $this; } /** * Gets the title * The title of the task. * * @return string|null The title */ public function getTitle() { if (array_key_exists("title", $this->_propDict)) { return $this->_propDict["title"]; } else { return null; } } /** * Sets the title * The title of the task. * * @param string $val The title * * @return WorkbookDocumentTask */ public function setTitle($val) { $this->_propDict["title"] = $val; return $this; } /** * Gets the changes * A collection of task change histories. * * @return array|null The changes */ public function getChanges() { if (array_key_exists("changes", $this->_propDict)) { return $this->_propDict["changes"]; } else { return null; } } /** * Sets the changes * A collection of task change histories. * * @param WorkbookDocumentTaskChange[] $val The changes * * @return WorkbookDocumentTask */ public function setChanges($val) { $this->_propDict["changes"] = $val; return $this; } /** * Gets the comment * The comment that the task is associated with. * * @return WorkbookComment|null The comment */ public function getComment() { if (array_key_exists("comment", $this->_propDict)) { if (is_a($this->_propDict["comment"], "\Beta\Microsoft\Graph\Model\WorkbookComment") || is_null($this->_propDict["comment"])) { return $this->_propDict["comment"]; } else { $this->_propDict["comment"] = new WorkbookComment($this->_propDict["comment"]); return $this->_propDict["comment"]; } } return null; } /** * Sets the comment * The comment that the task is associated with. * * @param WorkbookComment $val The comment * * @return WorkbookDocumentTask */ public function setComment($val) { $this->_propDict["comment"] = $val; return $this; } }