File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/vendor/php-http/message/src/Decorator/ResponseDecorator.php
Back
<?php namespace AmeliaHttp\Message\Decorator; use AmeliaPsr\Http\Message\ResponseInterface; /** * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ trait ResponseDecorator { use MessageDecorator { getMessage as getResponse; } /** * Exchanges the underlying response with another. * * @param ResponseInterface $response * * @return self */ public function withResponse(ResponseInterface $response) { $new = clone $this; $new->message = $response; return $new; } /** * {@inheritdoc} */ public function getStatusCode() { return $this->message->getStatusCode(); } /** * {@inheritdoc} */ public function withStatus($code, $reasonPhrase = '') { $new = clone $this; $new->message = $this->message->withStatus($code, $reasonPhrase); return $new; } /** * {@inheritdoc} */ public function getReasonPhrase() { return $this->message->getReasonPhrase(); } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings