public function getErrorEnvelope() { if ($this->errorEnvelope === null) { $this->errorEnvelope = new ErrorEnvelope(); } return $this->errorEnvelope; }