Version.php 711 B

123456789101112131415161718192021222324252627282930
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of the php-code-coverage package.
  4. *
  5. * (c) 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 SebastianBergmann\CodeCoverage;
  11. use SebastianBergmann\Version as VersionId;
  12. final class Version
  13. {
  14. /**
  15. * @var string
  16. */
  17. private static $version;
  18. public static function id(): string
  19. {
  20. if (self::$version === null) {
  21. $version = new VersionId('7.0.15', \dirname(__DIR__));
  22. self::$version = $version->getVersion();
  23. }
  24. return self::$version;
  25. }
  26. }