@@ 11-18 (lines=8) @@ | ||
8 | ||
9 | use ParameterActionTrait; |
|
10 | ||
11 | public static function simpleGet( string $action, array $params = [], array $headers = [] ): self { |
|
12 | $req = new self(); |
|
13 | $req->setMethod( 'GET' ); |
|
14 | $req->setAction( $action ); |
|
15 | $req->addParams( $params ); |
|
16 | $req->setHeaders( $headers ); |
|
17 | return $req; |
|
18 | } |
|
19 | ||
20 | public static function simplePost( string $action, array $params = [], array $headers = [] ): self { |
|
21 | $req = new self(); |
|
@@ 20-27 (lines=8) @@ | ||
17 | return $req; |
|
18 | } |
|
19 | ||
20 | public static function simplePost( string $action, array $params = [], array $headers = [] ): self { |
|
21 | $req = new self(); |
|
22 | $req->setMethod( 'POST' ); |
|
23 | $req->setAction( $action ); |
|
24 | $req->addParams( $params ); |
|
25 | $req->setHeaders( $headers ); |
|
26 | return $req; |
|
27 | } |
|
28 | ||
29 | } |
|
30 |