4 * This file is part of composer/semver.
6 * (c) Composer <https://github.com/composer>
8 * For the full copyright and license information, please view
9 * the LICENSE file that was distributed with this source code.
12 namespace Composer\Semver\Constraint;
15 * Defines the absence of a constraint.
17 class EmptyConstraint implements ConstraintInterface
20 protected $prettyString;
23 * @param ConstraintInterface $provider
27 public function matches(ConstraintInterface $provider)
33 * @param $prettyString
35 public function setPrettyString($prettyString)
37 $this->prettyString = $prettyString;
43 public function getPrettyString()
45 if ($this->prettyString) {
46 return $this->prettyString;
49 return $this->__toString();
55 public function __toString()