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

SiftScienceSerializer::collection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 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