Completed
Push — master ( f07867...2c3182 )
by Juliano
02:12
created

ProductPriceTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 26
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A paginate() 0 4 1
A get() 0 4 1
1
<?php
2
3
namespace JulianoBailao\DomusApi\Endpoints\Secondary;
4
5
use JulianoBailao\DomusApi\Contracts\GetContract;
6
use JulianoBailao\DomusApi\Core\Endpoint;
7
8
class ProductPriceTable extends Endpoint implements GetContract
9
{
10
    /**
11
     * Get a page of models list.
12
     *
13
     * @param array $query the request query string.
14
     *
15
     * @return stdObject
16
     */
17
    public function paginate(array $query = [])
18
    {
19
        return $this->page('pedidovenda-rest/produtos', $query);
20
    }
21
22
    /**
23
     * Get a specific model.
24
     *
25
     * @param int $id the model id.
26
     *
27
     * @return stdObject
28
     */
29
    public function get($id)
30
    {
31
        return $this->run('GET', 'pedidovenda-rest/produtos/'.$id);
32
    }
33
}
34