Completed
Push — master ( 498785...489d0f )
by Josh
03:01
created

ArraySerializer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A collection() 0 4 1
1
<?php
2
3
namespace NavJobs\Transmit\Serializers;
4
5
use League\Fractal\Serializer\ArraySerializer as BaseArraySerializer;
6
7
class ArraySerializer extends BaseArraySerializer
8
{
9
    /**
10
     * Serialize a collection.
11
     *
12
     * @param string $resourceKey
13
     * @param array  $data
14
     *
15
     * @return array
16
     */
17
    public function collection($resourceKey, array $data)
18
    {
19
        return $data;
20
    }
21
}
22