original_string: public function serializeData($mixValues)
      {
          $data = ToolboxFile::convertValuesToDatabase($mixValues ?: ['bin' => [], 'value' => [], 'path' => []]);
  
          // Check single file or multiple file.
          if ($this->get('file_multiple')) {
              return \serialize($data);
          }
  
          return $data[0];
      }
code: public function serializeData($mixValues)
      {
          $data = ToolboxFile::convertValuesToDatabase($mixValues ?: ['bin' => [], 'value' => [], 'path' => []]);
  
          // Check single file or multiple file.
          if ($this->get('file_multiple')) {
              return \serialize($data);
          }
  
          return $data[0];
      }
code_tokens: public function serializeData ( $ mixValues ) { $ data = ToolboxFile :: convertValuesToDatabase ( $ mixValues ? : [ 'bin' => [ ] , 'value' => [ ] , 'path' => [ ] ] ) ; // Check single file or multiple file. if ( $ this -> get ( 'file_multiple' ) ) { return \ serialize ( $ data ) ; } return $ data [ 0 ] ; }
docstring: Take the data from the system and serialize it for the database.
  
  @param mixed $mixValues The data to serialize.
  
  @return string An serialized array with binary data or a binary data.
docstring_tokens: Take the data from the system and serialize it for the database .