public function map($data)
{
foreach ($data as &$item) {
$this->original = $value = array_get($item, $this->name);
if ($this->hasValueWrapper()) {
$value = call_user_func($this->valueWrapper, $value);
array_set($item, $this->name, $value);
}
if ($this->hasHtmlWrapper()) {
$value = $this->htmlWrap($value);
array_set($item, $this->name, $value);
}
}
return $data;
}