public function MultiConstraint::__toString in Automatic Updates 7
Return value
string
Overrides ConstraintInterface::__toString
File
- vendor/
composer/ semver/ src/ Constraint/ MultiConstraint.php, line 111
Class
- MultiConstraint
- Defines a conjunctive or disjunctive set of constraints.
Namespace
Composer\Semver\ConstraintCode
public function __toString() {
$constraints = array();
foreach ($this->constraints as $constraint) {
$constraints[] = (string) $constraint;
}
return '[' . implode($this->conjunctive ? ' ' : ' || ', $constraints) . ']';
}