Item   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 14
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A transform() 0 8 1
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://github.com/flipbox/relay-transform/blob/master/LICENSE
6
 * @link       https://github.com/flipbox/relay-transform
7
 */
8
9
namespace Flipbox\Relay\Middleware\Transform;
10
11
use Flipbox\Transform\Factory as TransformFactory;
12
13
/**
14
 * @author Flipbox Factory <[email protected]>
15
 * @since 1.0.0
16
 */
17
class Item extends AbstractResource
18
{
19
    /**
20
     * @return array|null
21
     */
22
    protected function transform()
23
    {
24
        return TransformFactory::item($this->config)
25
            ->transform(
26
                $this->resolveTransformer(),
27
                $this->data
28
            );
29
    }
30
}
31