Augmentation vers version 3.3.0

This commit is contained in:
Gauvain Boiché
2020-03-31 15:31:03 +02:00
parent d926806907
commit a1864c0414
2618 changed files with 406015 additions and 31377 deletions

View File

@@ -16,8 +16,12 @@
* and is licensed under the MIT license.
*/
declare(strict_types=1);
namespace ProxyManager;
use PackageVersions\Versions;
/**
* Version class - to be adjusted when a new release is created.
*
@@ -28,12 +32,23 @@ namespace ProxyManager;
*/
final class Version
{
const VERSION = '1.0.0';
/**
* Private constructor - this class is not meant to be instantiated
*/
private function __construct()
{
}
/**
* Retrieves the package version in the format <detected-version>@<commit-hash>,
* where the detected version is what composer could detect.
*
* @return string
*
* @throws \OutOfBoundsException
*/
public static function getVersion() : string
{
return Versions::getVersion('ocramius/proxy-manager');
}
}