private function convert($mixValues)
    {
        $data = ToolboxFile::convertValuesToDatabase($mixValues);

        // Check single file or multiple file.
        return $this->get('file_multiple')
                ? \serialize($data)
                    : ($data[0] ?? null);
    }
private function convert($mixValues)
    {
        $data = ToolboxFile::convertValuesToDatabase($mixValues);

        // Check single file or multiple file.
        return $this->get('file_multiple')
                ? \serialize($data)
                    : ($data[0] ?? null);
    }
private function convert ( $ mixValues ) { $ data = ToolboxFile :: convertValuesToDatabase ( $ mixValues ) ; // Check single file or multiple file. return $ this -> get ( 'file_multiple' ) ? \ serialize ( $ data ) : ( $ data [ 0 ] ?? null ) ; }
Take the native data 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.
Take the native data and serialize it for the database .