/** * md5 checksums of 2 files * * @param File $file1 * @param File $file2 * @return boolean */ public function isIndentical(File $file1, File $file2) { return $file1->getHash() === $file2->getHash(); }
/** * Remove File from Index * * @param File $file */ public function remove(File $file) { $hash = $file->getFullPathHash(); $this->isChanged = true; unset($this->files[$hash]); }