| 1 | <?php |
||
| 9 | abstract class Transformer extends TransformerAbstract |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Returns the includes that are available for eager loading. |
||
| 13 | * |
||
| 14 | * @param array|string $requestedIncludes Array of csv string |
||
| 15 | * |
||
| 16 | * @return $this |
||
| 17 | */ |
||
| 18 | public function getEagerLoads($requestedIncludes) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Create a new item resource object. |
||
| 34 | * |
||
| 35 | * @param mixed $data |
||
| 36 | * @param TransformerAbstract|callable $transformer |
||
| 37 | * @param string $resourceKey |
||
| 38 | * |
||
| 39 | * @return Item |
||
| 40 | */ |
||
| 41 | protected function item($data, $transformer, $resourceKey = null) |
||
| 49 | } |