_propDict)) { if (is_a($this->_propDict["mode"], "\Microsoft\Graph\Model\PersistentBrowserSessionMode") || is_null($this->_propDict["mode"])) { return $this->_propDict["mode"]; } else { $this->_propDict["mode"] = new PersistentBrowserSessionMode($this->_propDict["mode"]); return $this->_propDict["mode"]; } } return null; } /** * Sets the mode * Possible values are: always, never. * * @param PersistentBrowserSessionMode $val The value to assign to the mode * * @return PersistentBrowserSessionControl The PersistentBrowserSessionControl */ public function setMode($val) { $this->_propDict["mode"] = $val; return $this; } }