Version.php 674 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  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. class Version
  13. {
  14. private static $version;
  15. /**
  16. * @return string
  17. */
  18. public static function id()
  19. {
  20. if (self::$version === null) {
  21. $version = new VersionId('5.2.1', dirname(__DIR__));
  22. self::$version = $version->getVersion();
  23. }
  24. return self::$version;
  25. }
  26. }