/**
  * @Warmup(10)
  * @Revs(100000)
  * @Groups({"trait"})
  * @BeforeMethods({"setup","setupReconstitute"})
  */
 public function benchSerializeObjectWithOnlyScalarPropertiesWithTrait()
 {
     $this->serializableClassUsingTrait->serialize();
 }
 /**
  * Since SQL databases are normalized, nested arrays
  * must be serialized to JSON.
  * @param SerializableInterface $model
  * @return array
  */
 private function serialize(SerializableInterface $model) : array
 {
     $array = $model->serialize();
     foreach ($this->stringify as $column) {
         $array[$column] = json_encode($array[$column]);
     }
     return $array;
 }