public function add($file_name_or_array, bool $flatten_root_folder = false): ZipManager {

        try {

            foreach ( $this->zip_archives as $archive ) {
                $archive->add($file_name_or_array, $flatten_root_folder);
            }
            return $this;

        } catch (ZipException $ze) {
            throw $ze;
        }

    }
public function add($file_name_or_array, bool $flatten_root_folder = false): ZipManager {

        try {

            foreach ( $this->zip_archives as $archive ) {
                $archive->add($file_name_or_array, $flatten_root_folder);
            }
            return $this;

        } catch (ZipException $ze) {
            throw $ze;
        }

    }
public function add ( $ file_name_or_array , bool $ flatten_root_folder = false ) : ZipManager { try { foreach ( $ this -> zip_archives as $ archive ) { $ archive -> add ( $ file_name_or_array , $ flatten_root_folder ) ; } return $ this ; } catch ( ZipException $ ze ) { throw $ ze ; } }
Add a file to all registered Zips

@param mixed $file_name_or_array
The filename to add or an array of filenames
@param bool $flatten_root_folder
(optional) If true, the Zip root folder will be flattened (default: false)

@return ZipManager
@throws ZipException
Add a file to all registered Zips