| 1 | <?php |
||
| 19 | abstract class AbstractTransformer implements TransformerInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param array $config |
||
| 23 | */ |
||
| 24 | public function __construct(array $config = []) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | public function getIncludes(): array |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param mixed $data |
||
| 39 | * @param TransformerInterface|callable $transformer |
||
| 40 | * @return Item |
||
| 41 | */ |
||
| 42 | protected function item($data, $transformer): Item |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param mixed $data |
||
| 49 | * @param TransformerInterface|callable $transformer |
||
| 50 | * @return Collection |
||
| 51 | */ |
||
| 52 | protected function collection($data, $transformer): Collection |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @inheritdoc |
||
| 59 | */ |
||
| 60 | public function __invoke($data, Scope $scope, string $identifier = null) |
||
| 64 | } |
||
| 65 |