Packages   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 26
ccs 4
cts 4
cp 1
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;
4
5
use JulianoBailao\DomusApi\Contracts\GetContract;
6
use JulianoBailao\DomusApi\Core\Endpoint;
7
8
class Packages extends Endpoint implements GetContract
9
{
10
    /**
11
     * Get a page of product lines list.
12
     *
13
     * @param array $query the request query string.
14
     *
15
     * @return stdObject
16
     */
17 3
    public function paginate(array $query = [])
18
    {
19 3
        return $this->page('operacional/embalagens', $query);
20
    }
21
22
    /**
23
     * Get a specific product line.
24
     *
25
     * @param int $id the product line id.
26
     *
27
     * @return stdObject
28
     */
29 3
    public function get($id)
30
    {
31 3
        return $this->run('GET', 'operacional/embalagens/'.$id);
32
    }
33
}
34