Completed
Push — master ( 51f493...5fff17 )
by Gilmar
21:31
created

TemplatesCollection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getKey() 0 4 1
A factoryEntity() 0 4 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\Metadata\MetadataContainerAbstract;
13
14
class TemplatesCollection extends MetadataContainerAbstract
15
{
16
    protected function getKey()
17
    {
18
        return 'items';
19
    }
20
21
    protected function factoryEntity(array $data)
22
    {
23
        return new Item($data);
24
    }
25
}
26