예제 #1
0
 /**
  * @param mixed                                            $value
  * @param \AntiMattr\ETL\Transform\TransformationInterface $transformation
  */
 public function bind($value, TransformationInterface $transformation)
 {
     $task = $transformation->getTask();
     $dataContext = $task->getDataContext();
     $name = $transformation->getName();
     $currentTransformedRecord = $dataContext->getCurrentTransformedRecord();
     $currentTransformedRecord[$name] = $value;
     $dataContext->setCurrentTransformedRecord($currentTransformedRecord);
 }