From 75c3bf396223787e136edbedb81923b406d141c2 Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Mon, 2 Dec 2013 23:02:08 +0100 Subject: [PATCH 1/2] [HttpFoundation] added a getter for statusText in Response --- src/Symfony/Component/HttpFoundation/Response.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index d6fbfba0b3a50..d7c1534fce46c 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -515,6 +515,18 @@ public function getStatusCode() return $this->statusCode; } + /** + * Retrieves the status text for the current web response. + * + * @return string Status text + * + * @api + */ + public function getStatusText() + { + return $this->statusText; + } + /** * Sets the response charset. * From 8a23423e121002c37afc1ee2e0a8b1e696acb93e Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Mon, 2 Dec 2013 23:09:49 +0100 Subject: [PATCH 2/2] removed @api phpdoc --- src/Symfony/Component/HttpFoundation/Response.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index d7c1534fce46c..c5c4237bc5776 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -519,8 +519,6 @@ public function getStatusCode() * Retrieves the status text for the current web response. * * @return string Status text - * - * @api */ public function getStatusText() { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy