_propDict)) { if (is_a($this->_propDict["options"], "\Microsoft\Graph\Model\WorkbookWorksheetProtectionOptions") || is_null($this->_propDict["options"])) { return $this->_propDict["options"]; } else { $this->_propDict["options"] = new WorkbookWorksheetProtectionOptions($this->_propDict["options"]); return $this->_propDict["options"]; } } return null; } /** * Sets the options * Sheet protection options. Read-only. * * @param WorkbookWorksheetProtectionOptions $val The options * * @return WorkbookWorksheetProtection */ public function setOptions($val) { $this->_propDict["options"] = $val; return $this; } /** * Gets the protected * Indicates if the worksheet is protected. Read-only. * * @return bool|null The protected */ public function getProtected() { if (array_key_exists("protected", $this->_propDict)) { return $this->_propDict["protected"]; } else { return null; } } /** * Sets the protected * Indicates if the worksheet is protected. Read-only. * * @param bool $val The protected * * @return WorkbookWorksheetProtection */ public function setProtected($val) { $this->_propDict["protected"] = boolval($val); return $this; } }