/** * @inheritdoc */ public function getStream() { if ($this->stream === null) { $this->assertValidUpload(); $this->stream = $this->messages->stream($this->file); } return $this->stream; }
/** * @inheritdoc */ protected function requireUri() { if ($this->uri === null) { $this->uri = $this->messages->sapiUri($this->serverParams); } }
/** * Get PSR-7 response representation * @param Context|null $context HTTP context * @return ResponseInterface */ public function asResponseMessage($context = null) { return $this->messages->response('1.1', $this->mergeContextHeaders($context), $this->body, $this->statusCode, $this->reasonPhrase); }