Completed
Push — master ( 6a7799...1d416b )
by Gilmar
03:10
created

Manager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 2
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBrands() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of gpupo component
5
 * Created by Gilmar Pupo <[email protected]>
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 * For more information, see <http://www.g1mr.com/>.
9
 */
10
namespace Gpupo\NetshoesSdk\Entity\Templates;
11
12
use Gpupo\CommonSdk\Entity\EntityInterface;
13
use Gpupo\CommonSdk\Traits\PoolTrait;
14
use Gpupo\NetshoesSdk\Entity\ManagerAbstract;
15
16
class Manager extends ManagerAbstract
17
{
18
    use PoolTrait;
19
20
    protected $entity = 'Templates';
21
22
    protected $maps = [
23
        'brands'        => ['GET', '/brands'],
24
    ];
25
26
    public function getBrands()
27
    {
28
        $response = $this->perform($this->factoryMap('brands'));
29
        $p = $this->processResponse($response);
30
31
        return $this->fetchPrepare($p);
32
    }
33
34
}
35