public function convert(Field $field, $value) { if ($field->getType() === FieldTypes::INTEGER) { return $value * -1; } return $value; }
public function convert(Field $field, $value) { if (in_array($field->getType(), $this->acceptTypes)) { return utf8_encode($value); } return $value; }