Full name: \Jean85\Version
Constant
Visibility
Type
Value
SHORT_COMMIT_LENGTH
private
7
NO_VERSION_TEXT
public
'{no version}'
NO_REFERENCE_TEXT
public
'{no reference}'
private string $ packageName
private string $ prettyVersion
private string $ reference
private bool $ versionIsTagged
public __construct (string $ packageName , ?string $ prettyVersion = null , ?string $ reference = null ): mixed
Parameters:
Parameter
Type
Description
$packageName
string
$prettyVersion
?string
$reference
?string
public getPrettyVersion (): string
public getFullVersion (): string
getVersionWithShortCommit
public getVersionWithShortCommit (): string
Warning: this method is deprecated . This means that this method will likely be removed in a future version.
getVersionWithShortReference
public getVersionWithShortReference (): string
public getPackageName (): string
public getShortVersion (): string
public getCommitHash (): string
Warning: this method is deprecated . This means that this method will likely be removed in a future version.
public getReference (): string
public getShortCommitHash (): string
Warning: this method is deprecated . This means that this method will likely be removed in a future version.
public getShortReference (): string
public __toString (): string