Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | class TransformPipe implements CanPipe |
||
12 | { |
||
13 | /** @var TransformerRegistry */ |
||
14 | private $transformerRepository; |
||
15 | |||
16 | /** |
||
17 | * @param TransformerRegistry $transformerRepository |
||
18 | */ |
||
19 | 14 | public function __construct(TransformerRegistry $transformerRepository) |
|
22 | 14 | } |
|
23 | |||
24 | /** |
||
25 | * @param object $resource |
||
26 | * @param Context $context |
||
27 | * @param $data |
||
28 | * @param Path $path |
||
29 | * @return mixed |
||
30 | * @throws TransformerNotFoundException |
||
31 | */ |
||
32 | 9 | public function pipe($resource, Context $context, Path $path, $data) |
|
39 |