Your IP : 127.0.0.1


Current Path : /home/dev2.destoffenstraat.com/vendor/phar-io/version/src/
Upload File :
Current File : /home/dev2.destoffenstraat.com/vendor/phar-io/version/src/ExactVersionConstraint.php

<?php
/*
 * This file is part of PharIo\Version.
 *
 * (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace PharIo\Version;

class ExactVersionConstraint extends AbstractVersionConstraint {
    /**
     * @param Version $version
     *
     * @return bool
     */
    public function complies(Version $version) {
        return $this->asString() == $version->getVersionString();
    }
}