Completed
Push — 1.11.x ( 518476...344d9e )
by José
55:02 queued 28:13
created

Planes::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Culqi;
3
4
class Planes extends Resource {
5
6
    const URL_PLANES = "/planes/";
7
8
    public function create($options = NULL)
9
    {
10
        return $this->request("POST", Planes::URL_PLANES, $api_key = $this->culqi->api_key, $options);
11
    }
12
13
14
    public function getList($options)
15
    {
16
17
        return $this->request("GET", Planes::URL_PLANES, $api_key = $this->culqi->api_key, $options);
18
    }
19
20
21
    public function get($id)
22
    {
23
24
        return $this->request("GET", Planes::URL_PLANES . $id . "/", $api_key = $this->culqi->api_key);
25
    }
26
27
    public function delete($id)
28
    {
29
30
       return $this->request("DELETE", Planes::URL_PLANES . $id . "/", $api_key = $this->culqi->api_key);
31
32
   }
33
34
35
36
37
}
38