_propDict)) { if (is_a($this->_propDict["links"], "\Microsoft\Graph\Model\OnenotePagePreviewLinks") || is_null($this->_propDict["links"])) { return $this->_propDict["links"]; } else { $this->_propDict["links"] = new OnenotePagePreviewLinks($this->_propDict["links"]); return $this->_propDict["links"]; } } return null; } /** * Sets the links * * @param OnenotePagePreviewLinks $val The value to assign to the links * * @return OnenotePagePreview The OnenotePagePreview */ public function setLinks($val) { $this->_propDict["links"] = $val; return $this; } /** * Gets the previewText * * @return string|null The previewText */ public function getPreviewText() { if (array_key_exists("previewText", $this->_propDict)) { return $this->_propDict["previewText"]; } else { return null; } } /** * Sets the previewText * * @param string $val The value of the previewText * * @return OnenotePagePreview */ public function setPreviewText($val) { $this->_propDict["previewText"] = $val; return $this; } }