Beispiel #1
0
 public function diff(Collection $patches)
 {
     if ($patches->getTable() == $this->getTable()) {
         /** @var Patch $patch */
         foreach ($patches as $patch) {
             $key = $this->matchPatch($patch);
             if (!is_null($key)) {
                 $this->remove($key);
             }
         }
     }
     $this->patches = array_values($this->patches);
 }