| 1 | <?php | ||
| 19 | trait ObjectToObject | ||
| 20 | { | ||
| 21 | use ObjectData; | ||
| 22 | |||
| 23 | /** | ||
| 24 | * @param \Traversable $data | ||
| 25 | * @param $scope | ||
| 26 | * @param $identifier | ||
| 27 | * @return mixed | ||
| 28 | */ | ||
| 29 | abstract public function transform(\Traversable $data, $scope, $identifier); | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @inheritdoc | ||
| 33 | */ | ||
| 34 | public function __invoke($data, Scope $scope, string $identifier = null) | ||
| 39 | } | ||
| 40 |