Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RuleWatchNode.php

function RuleWatchNode::moveWatch

Moves a watch from one literal to another

Parameters

int $from The previously watched literal:

int $to The literal to be watched now:

File

vendor/composer/composer/src/Composer/DependencyResolver/RuleWatchNode.php, line 106

Class

RuleWatchNode
Wrapper around a Rule which keeps track of the two literals it watches

Namespace

Composer\DependencyResolver

Code

public function moveWatch(int $from, int $to) : void {
    if ($this->watch1 === $from) {
        $this->watch1 = $to;
    }
    else {
        $this->watch2 = $to;
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal