_propDict)) { return $this->_propDict["reason"]; } else { return null; } } /** * Sets the reason * Classification of why a call or portion of a call failed. * * @param string $val The value of the reason * * @return FailureInfo */ public function setReason($val) { $this->_propDict["reason"] = $val; return $this; } /** * Gets the stage * The stage when the failure occurred. Possible values are: unknown, callSetup, midcall, unknownFutureValue. * * @return FailureStage|null The stage */ public function getStage() { if (array_key_exists("stage", $this->_propDict)) { if (is_a($this->_propDict["stage"], "\Microsoft\Graph\CallRecords\Model\FailureStage") || is_null($this->_propDict["stage"])) { return $this->_propDict["stage"]; } else { $this->_propDict["stage"] = new FailureStage($this->_propDict["stage"]); return $this->_propDict["stage"]; } } return null; } /** * Sets the stage * The stage when the failure occurred. Possible values are: unknown, callSetup, midcall, unknownFutureValue. * * @param FailureStage $val The value to assign to the stage * * @return FailureInfo The FailureInfo */ public function setStage($val) { $this->_propDict["stage"] = $val; return $this; } }