Completed
Push — master ( 5b0678...7c7fe3 )
by Gilmar
02:35
created

Product   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSchema() 0 12 1
1
<?php
2
3
/*
4
 * This file is part of gpupo/netshoes-sdk
5
 *
6
 * (c) Gilmar Pupo <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * For more information, see
12
 * <http://www.g1mr.com/netshoes-sdk/>.
13
 */
14
namespace Gpupo\NetshoesSdk\Entity\Product;
15
16
use Gpupo\CommonSdk\Entity\EntityAbstract;
17
use Gpupo\CommonSdk\Entity\EntityInterface;
18
19
/**
20
 */
21
class Product extends EntityAbstract implements EntityInterface
22
{
23
    protected $primaryKey = 'productId';
24
25
    public function getSchema()
26
    {
27
        return [
28
            'productId'     => 'string',
29
            'skus'          => 'object',
30
            'department'    => 'string',
31
            'productType'   => 'string',
32
            'brand'         => 'string',
33
            'attributes'    => 'object',
34
            'links'         => 'object',
35
        ];
36
    }
37
}
38