예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getInitialValue(Row $row)
 {
     $value = [];
     foreach ((array) $this->configuration['source'] as $key) {
         $value[] = $row->source()->get($key);
     }
     return $value;
 }
예제 #2
0
 protected function processRow(Row $row)
 {
     foreach ($this->getProcessingPipeline() as $property => $plugins) {
         try {
             $row->destination()->set($property, $this->processProperty($row, $plugins));
         } catch (SkipPropertyException $e) {
             $this->log()->error($e->getMessage());
         }
     }
 }