You are here

public function Constraint::__toString in Automatic Updates 7

Same name in this branch
  1. 7 vendor/drupal/core-version/Constraint.php \Drupal\Component\Version\Constraint::__toString()
  2. 7 vendor/composer/semver/src/Constraint/Constraint.php \Composer\Semver\Constraint\Constraint::__toString()

Return value

string

Overrides ConstraintInterface::__toString

1 call to Constraint::__toString()
Constraint::getPrettyString in vendor/composer/semver/src/Constraint/Constraint.php

File

vendor/composer/semver/src/Constraint/Constraint.php, line 211

Class

Constraint
Defines a constraint.

Namespace

Composer\Semver\Constraint

Code

public function __toString() {
  return self::$transOpInt[$this->operator] . ' ' . $this->version;
}