/**
  * {@inheritdoc}
  */
 public function execute()
 {
     if (!$this->rootPackageFile->hasBindingDescriptor($this->uuid)) {
         return;
     }
     $this->previousDescriptor = $this->rootPackageFile->getBindingDescriptor($this->uuid);
     $this->rootPackageFile->removeBindingDescriptor($this->uuid);
 }
 /**
  * {@inheritdoc}
  */
 public function execute()
 {
     $uuid = $this->bindingDescriptor->getUuid();
     if ($this->rootPackageFile->hasBindingDescriptor($uuid)) {
         $this->previousDescriptor = $this->rootPackageFile->getBindingDescriptor($uuid);
     }
     $this->rootPackageFile->addBindingDescriptor($this->bindingDescriptor);
 }