Version.php 665 B

123456789101112131415161718192021222324252627
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of phpunit/php-code-coverage.
  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 function dirname;
  12. use SebastianBergmann\Version as VersionId;
  13. final class Version
  14. {
  15. private static string $version = '';
  16. public static function id(): string
  17. {
  18. if (self::$version === '') {
  19. self::$version = (new VersionId('10.1.14', dirname(__DIR__)))->asString();
  20. }
  21. return self::$version;
  22. }
  23. }