class EmptyConstraint in Automatic Updates 7
Defines the absence of a constraint.
Hierarchy
- class \Composer\Semver\Constraint\EmptyConstraint implements ConstraintInterface
Expanded class hierarchy of EmptyConstraint
1 file declares its use of EmptyConstraint
- VersionParser.php in vendor/
composer/ semver/ src/ VersionParser.php
File
- vendor/
composer/ semver/ src/ Constraint/ EmptyConstraint.php, line 17
Namespace
Composer\Semver\ConstraintView source
class EmptyConstraint implements ConstraintInterface {
/** @var string */
protected $prettyString;
/**
* @param ConstraintInterface $provider
*
* @return bool
*/
public function matches(ConstraintInterface $provider) {
return true;
}
/**
* @param $prettyString
*/
public function setPrettyString($prettyString) {
$this->prettyString = $prettyString;
}
/**
* @return string
*/
public function getPrettyString() {
if ($this->prettyString) {
return $this->prettyString;
}
return (string) $this;
}
/**
* @return string
*/
public function __toString() {
return '[]';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EmptyConstraint:: |
protected | property | @var string | |
EmptyConstraint:: |
public | function |
Overrides ConstraintInterface:: |
|
EmptyConstraint:: |
public | function |
Overrides ConstraintInterface:: |
|
EmptyConstraint:: |
public | function | ||
EmptyConstraint:: |
public | function |
Overrides ConstraintInterface:: |