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

Planes   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 34
rs 10
c 0
b 0
f 0
wmc 4
lcom 1
cbo 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A getList() 0 5 1
A get() 0 5 1
A delete() 0 6 1
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