_propDict)) { return $this->_propDict["name"]; } else { return null; } } /** * Sets the name * Name of the PivotTable. * * @param string $val The name * * @return WorkbookPivotTable */ public function setName($val) { $this->_propDict["name"] = $val; return $this; } /** * Gets the worksheet * The worksheet containing the current PivotTable. Read-only. * * @return WorkbookWorksheet|null The worksheet */ public function getWorksheet() { if (array_key_exists("worksheet", $this->_propDict)) { if (is_a($this->_propDict["worksheet"], "\Microsoft\Graph\Model\WorkbookWorksheet") || is_null($this->_propDict["worksheet"])) { return $this->_propDict["worksheet"]; } else { $this->_propDict["worksheet"] = new WorkbookWorksheet($this->_propDict["worksheet"]); return $this->_propDict["worksheet"]; } } return null; } /** * Sets the worksheet * The worksheet containing the current PivotTable. Read-only. * * @param WorkbookWorksheet $val The worksheet * * @return WorkbookPivotTable */ public function setWorksheet($val) { $this->_propDict["worksheet"] = $val; return $this; } }