_propDict)) { if (is_a($this->_propDict["error"], "\Beta\Microsoft\Graph\Model\PublicError") || is_null($this->_propDict["error"])) { return $this->_propDict["error"]; } else { $this->_propDict["error"] = new \Beta\Microsoft\Graph\Model\PublicError($this->_propDict["error"]); return $this->_propDict["error"]; } } return null; } /** * Sets the error * Error information that explains the failure to process an external activity. * * @param \Beta\Microsoft\Graph\Model\PublicError $val The error * * @return ExternalActivityResult */ public function setError($val) { $this->_propDict["error"] = $val; return $this; } }