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