AbstractVersionConstraint.php 687 B

1234567891011121314151617181920212223
  1. <?php declare(strict_types = 1);
  2. /*
  3. * This file is part of PharIo\Version.
  4. *
  5. * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace PharIo\Version;
  11. abstract class AbstractVersionConstraint implements VersionConstraint {
  12. /** @var string */
  13. private $originalValue;
  14. public function __construct(string $originalValue) {
  15. $this->originalValue = $originalValue;
  16. }
  17. public function asString(): string {
  18. return $this->originalValue;
  19. }
  20. }