ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ResponseDecorator.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\HTTP;
4
16
18
24 function __construct(ResponseInterface $inner) {
25
26 $this->inner = $inner;
27
28 }
29
35 function getStatus() {
36
37 return $this->inner->getStatus();
38
39 }
40
41
49 function getStatusText() {
50
51 return $this->inner->getStatusText();
52
53 }
66 function setStatus($status) {
67
68 $this->inner->setStatus($status);
69
70 }
71
79 function __toString() {
80
81 return $this->inner->__toString();
82
83 }
84}
An exception for terminatinating execution or to throw for unit testing.
setStatus($status)
Sets the HTTP status code.
getStatusText()
Returns the human-readable status string.
__construct(ResponseInterface $inner)
Constructor.
__toString()
Serializes the request object as a string.
getStatus()
Returns the current HTTP status code.
This interface represents a HTTP response.
trait MessageDecoratorTrait
This trait contains a bunch of methods, shared by both the RequestDecorator and the ResponseDecorator...