You are here

public function Constraint::__toString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/composer/semver/src/Constraint/Constraint.php \Composer\Semver\Constraint\Constraint::__toString()

Return value

string

Overrides ConstraintInterface::__toString

File

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

Class

Constraint
Defines a constraint.

Namespace

Composer\Semver\Constraint

Code

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