_propDict)) { if (is_a($this->_propDict["error"], "\Microsoft\Graph\Model\PublicError") || is_null($this->_propDict["error"])) { return $this->_propDict["error"]; } else { $this->_propDict["error"] = new PublicError($this->_propDict["error"]); return $this->_propDict["error"]; } } return null; } /** * Sets the error * The error that occurred, if any, during the course of the bulk operation. * * @param PublicError $val The value to assign to the error * * @return ActionResultPart The ActionResultPart */ public function setError($val) { $this->_propDict["error"] = $val; return $this; } }