| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 69 | public function __invoke($data, Scope $scope, string $identifier = null) |
||
| 70 | { |
||
| 71 | $childScope = $scope->childScope($identifier); |
||
| 72 | |||
| 73 | $resource = $this->createResource( |
||
| 74 | $childScope |
||
| 75 | ); |
||
| 76 | |||
| 77 | return $resource->transform( |
||
| 78 | $this->transformer, |
||
| 79 | $this->getData( |
||
| 80 | $childScope |
||
| 81 | ) |
||
| 82 | ); |
||
| 83 | } |
||
| 84 | } |
||
| 85 |