AbstractVersionConstraint.php 753 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  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. /**
  13. * @var string
  14. */
  15. private $originalValue = '';
  16. /**
  17. * @param string $originalValue
  18. */
  19. public function __construct($originalValue) {
  20. $this->originalValue = $originalValue;
  21. }
  22. /**
  23. * @return string
  24. */
  25. public function asString() {
  26. return $this->originalValue;
  27. }
  28. }