Completed
Push — master ( 198b3f...28f717 )
by Nate
02:18
created

Item   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A transform() 0 7 1
1
<?php
2
3
/**
4
 * @package   Transform
5
 * @author    Flipbox Factory
6
 * @copyright Copyright (c) 2017, Flipbox Digital
7
 * @link      https://github.com/flipbox/transform/releases/latest
8
 * @license   https://github.com/flipbox/transform/blob/master/LICENSE
9
 */
10
11
namespace flipbox\transform\resources;
12
13
/**
14
 * @package flipbox\transform\resources
15
 * @author Flipbox Factory <[email protected]>
16
 * @since 1.0.0
17
 */
18
class Item extends AbstractResource
19
{
20
21
    /**
22
     * @param callable $transformer
23
     * @param $data
24
     * @return array|null
25
     */
26
    public function transform(callable $transformer, $data)
27
    {
28
        return $this->scope->transform(
29
            $transformer,
30
            $data
31
        );
32
    }
33
34
}
35