Completed
Push — master ( 2d6ec7...4d1653 )
by Jared
03:06
created

JCRequest::post()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 4
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: jaredchu
5
 * Date: 31/05/2017
6
 * Time: 09:40
7
 */
8
9
namespace JC;
10
11
12
use GuzzleHttp\Client;
13
14
class JCRequest implements iJCRequest
15
{
16
    public static function get($url, $headers = [], $params = [], $options = [])
17
    {
18
        $client = new Client();
19
        return new JCResponse($client->get($url));
20
    }
21
22
    public static function post($url, $headers, $params, $options)
23
    {
24
        // TODO: Implement post() method.
25
    }
26
27
    public static function put($url, $headers, $params, $options)
28
    {
29
        // TODO: Implement put() method.
30
    }
31
32
    public static function patch($url, $headers, $params, $options)
33
    {
34
        // TODO: Implement patch() method.
35
    }
36
37
    public static function head($url, $headers, $params, $options)
38
    {
39
        // TODO: Implement head() method.
40
    }
41
42
    public static function delete($url, $headers, $params, $options)
43
    {
44
        // TODO: Implement delete() method.
45
    }
46
}