Mercurial > hg > cmmr2012-drupal-site
annotate vendor/phar-io/version/src/AbstractVersionConstraint.php @ 2:5311817fb629
Theme updates
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 13:19:18 +0000 |
parents | |
children |
rev | line source |
---|---|
Chris@2 | 1 <?php |
Chris@2 | 2 /* |
Chris@2 | 3 * This file is part of PharIo\Version. |
Chris@2 | 4 * |
Chris@2 | 5 * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de> |
Chris@2 | 6 * |
Chris@2 | 7 * For the full copyright and license information, please view the LICENSE |
Chris@2 | 8 * file that was distributed with this source code. |
Chris@2 | 9 */ |
Chris@2 | 10 |
Chris@2 | 11 namespace PharIo\Version; |
Chris@2 | 12 |
Chris@2 | 13 abstract class AbstractVersionConstraint implements VersionConstraint { |
Chris@2 | 14 /** |
Chris@2 | 15 * @var string |
Chris@2 | 16 */ |
Chris@2 | 17 private $originalValue = ''; |
Chris@2 | 18 |
Chris@2 | 19 /** |
Chris@2 | 20 * @param string $originalValue |
Chris@2 | 21 */ |
Chris@2 | 22 public function __construct($originalValue) { |
Chris@2 | 23 $this->originalValue = $originalValue; |
Chris@2 | 24 } |
Chris@2 | 25 |
Chris@2 | 26 /** |
Chris@2 | 27 * @return string |
Chris@2 | 28 */ |
Chris@2 | 29 public function asString() { |
Chris@2 | 30 return $this->originalValue; |
Chris@2 | 31 } |
Chris@2 | 32 } |