vendor/ocramius/proxy-manager/src/ProxyManager/Version.php line 36

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace ProxyManager;
  4. use PackageVersions\Versions;
  5. /**
  6.  * Version class - to be adjusted when a new release is created.
  7.  *
  8.  * Note that we cannot check the version at runtime via `git` because that would cause a lot of I/O operations.
  9.  *
  10.  * @author Marco Pivetta <ocramius@gmail.com>
  11.  * @license MIT
  12.  */
  13. final class Version
  14. {
  15.     /**
  16.      * Private constructor - this class is not meant to be instantiated
  17.      */
  18.     private function __construct()
  19.     {
  20.     }
  21.     /**
  22.      * Retrieves the package version in the format <detected-version>@<commit-hash>,
  23.      * where the detected version is what composer could detect.
  24.      *
  25.      * @return string
  26.      *
  27.      * @throws \OutOfBoundsException
  28.      */
  29.     public static function getVersion() : string
  30.     {
  31.         return Versions::getVersion('ocramius/proxy-manager');
  32.     }
  33. }