Beispiel #1
0
 /**
  * Add a File to Index
  *
  * @param File $file
  */
 public function add(File $file)
 {
     # convert obj to array and store
     $hash = $file->getFullPathHash();
     $this->isChanged = true;
     $this->changedFiles[$hash] = $file;
     $file->getFileSize();
     $this->files[$hash] = json_decode(json_encode($file), true);
 }