Example #1
0
 /**
  * Fixture mapping.
  *
  * @param array|null $fields
  * @param string|null $parent
  * @return array
  */
 protected function dataMapping(array $fields = null, $parent = null)
 {
     if (isset($fields['custom_attribute'])) {
         $this->placeholders = ['attribute_code' => $fields['custom_attribute']['value']['code']];
         $this->applyPlaceholders();
     }
     return parent::dataMapping($fields, $parent);
 }