Skip to content

Commit 5133ca4

Browse files
committed
Complete text response type with comment
1 parent f714ede commit 5133ca4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Response/Text.php

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<?php
22
namespace Gt\Fetch\Response;
33

4+
/**
5+
* This class represents a string response. The reason it wraps a string with an
6+
* object is to allow for the same code to construct any type of response, and
7+
* in turn means that the Gt\Fetch\Response namespace is a good reference for
8+
* the types of response possible.
9+
*/
410
class Text {
511
/** @var string */
612
protected $content;

0 commit comments

Comments
 (0)