@@ -46,7 +46,7 @@ public function __construct(
4646 $ this ->headers = $ headers ;
4747 $ this ->statusCode = $ statusCode ;
4848 }
49- # Getters
49+
5050 /**
5151 * This method is used to get the response body as string
5252 * @return mixed
@@ -55,6 +55,7 @@ public function getBody(): mixed
5555 {
5656 return $ this ->body ;
5757 }
58+
5859 /**
5960 * This method is used to get the response headers
6061 * @return array<string, string>
@@ -63,6 +64,7 @@ public function getHeaders(): array
6364 {
6465 return $ this ->headers ;
6566 }
67+
6668 /**
6769 * This method is used to get the response status code
6870 * @return int
@@ -71,19 +73,19 @@ public function getStatusCode(): int
7173 {
7274 return $ this ->statusCode ;
7375 }
74- // Methods
7576
7677 /**
77- * This method is used to convert the response body to text
78- * @return string
79- */
78+ * This method is used to convert the response body to text
79+ * @return string
80+ */
8081 public function text (): string
8182 {
8283 return \strval ($ this ->body );
8384 }
85+
8486 /**
85- * This method is used to convert the response body to JSON
86- * @return mixed
87+ * This method is used to convert the response body to JSON
88+ * @return mixed
8789 */
8890 public function json (): mixed
8991 {
@@ -94,10 +96,10 @@ public function json(): mixed
9496 return $ data ;
9597 }
9698
97- /*
98- * This method is used to convert the response body to blob
99- * @return string
100- */
99+ /**
100+ * This method is used to convert the response body to blob
101+ * @return string
102+ */
101103 public function blob (): string
102104 {
103105 $ bin = "" ;
0 commit comments