Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
43 | 1 | public function transform($data = null, $transformer = null, array $with = [], array $without = []): array |
|
44 | { |
||
45 | 1 | return $this->transformBuilder->resource($data, $transformer) |
|
46 | 1 | ->with($with) |
|
47 | 1 | ->without($without) |
|
48 | 1 | ->serializer(new NullSerializer) |
|
49 | 1 | ->transform(); |
|
50 | } |
||
51 | } |