protected function set_data(array $contents = [])
    {
        foreach ($contents as $key => $file) {
            $this->data[ $key ] = $this->add_file($file);
        }
    }
protected function set_data(array $contents = [])
    {
        foreach ($contents as $key => $file) {
            $this->data[ $key ] = $this->add_file($file);
        }
    }
protected function set_data ( array $ contents = [ ] ) { foreach ( $ contents as $ key => $ file ) { $ this -> data [ $ key ] = $ this -> add_file ( $ file ) ; } }
Add the individual files to the bag.

@since 1.0.0

@param array $contents
Add the individual files to the bag .