Skip to content

Commit bfbe0c5

Browse files
committed
Add parse documentation to other classes
1 parent 30b4a98 commit bfbe0c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/HttpClient.php

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Ivan770\HttpClient;
44

5+
use Illuminate\Contracts\Support\Arrayable;
56
use Illuminate\Support\Traits\Macroable;
67
use Ivan770\HttpClient\Response\Response;
78
use Ivan770\HttpClient\Traits\InteractsWithEloquent;
@@ -19,6 +20,7 @@
1920
* @method HttpClient query(array $query) Add query string values to request
2021
* @method HttpClient withoutRedirects() Ignore all redirects for this request
2122
* @method HttpClient proxy(string $proxy, string $noproxy) Change proxy for this request
23+
* @method HttpClient parse(Arrayable $arrayable) Parse Arrayable class as JSON data source
2224
* @method Response get(string $url, array $arguments = []) Send a GET request
2325
* @method Response head(string $url, array $arguments = []) Send a HEAD request
2426
* @method Response post(string $url, array $arguments = []) Send a POST request

src/Request/Request.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
namespace Ivan770\HttpClient\Request;
55

6+
use Illuminate\Contracts\Support\Arrayable;
67
use Illuminate\Support\Collection;
78
use Ivan770\HttpClient\Contracts\PassToBrowserKit;
89
use Ivan770\HttpClient\Contracts\Request as RequestContract;
910
use Ivan770\HttpClient\HttpClient;
10-
use Ivan770\HttpClient\Response\Response;
1111
use Symfony\Component\BrowserKit\CookieJar;
1212
use Symfony\Component\BrowserKit\History;
1313
use Symfony\Component\DomCrawler\Crawler;
@@ -22,6 +22,7 @@
2222
* @method RequestContract query(array $query) Add query string values to request
2323
* @method RequestContract withoutRedirects() Ignore all redirects for this request
2424
* @method RequestContract proxy(string $proxy, string $noproxy) Change proxy for this request
25+
* @method RequestContract parse(Arrayable $arrayable) Parse Arrayable class as JSON data source
2526
*
2627
* @see Builder
2728
*/

0 commit comments

Comments
 (0)