Completed
Pull Request — master (#2)
by Ronaldo
01:43
created

SiftScienceSerializer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A collection() 0 4 1
1
<?php
2
3
namespace WSW\SiftScience\Support\Serializers;
4
5
use League\Fractal\Serializer\ArraySerializer;
6
use Symfony\Component\VarDumper\Dumper\DataDumperInterface;
7
8
/**
9
 * Class SiftScienceSerializer
10
 *
11
 * @package WSW\Money\Support\Serializers
12
 * @author Ronaldo Matos Rodrigues <[email protected]>
13
 */
14
class SiftScienceSerializer extends ArraySerializer
15
{
16
    /**
17
     * @param string $resourceKey
18
     * @param array $data
19
     *
20
     * @return array
21
     */
22 12
    public function collection($resourceKey, array $data)
23
    {
24 12
        return $this->item($resourceKey, $data);
25
    }
26
}
27