_filesToBackup = array_combine($filesToBackup,$names); } } /** * * * @param string[] $filestobackup a list of file path * * @return $this */ function setFilePath($filestobackup = array()) { if(!empty($filestobackup) && is_array($filestobackup)) { $names = $filestobackup; array_walk($names, 'basename'); $this->_filesToBackup = array_combine($filestobackup,$names); } return $this; } } ?>