Version
in package
FinalYes
Version class
Note that we cannot check the version at runtime via git
because that would cause a lot of I/O operations.
Table of Contents
Methods
- getVersion() : string
- Retrieves the package version in the format <detected-version>@<commit-hash>, where the detected version is what composer could detect.
- __construct() : mixed
- Private constructor - this class is not meant to be instantiated
Methods
getVersion()
Retrieves the package version in the format <detected-version>@<commit-hash>, where the detected version is what composer could detect.
public
static getVersion() : string
Tags
Return values
string__construct()
Private constructor - this class is not meant to be instantiated
private
__construct() : mixed