Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 8 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
20 | View Code Duplication | 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 | |||
30 |