Skip to content

Latest commit

 

History

History
342 lines (101 loc) · 2.21 KB

Version.md

File metadata and controls

342 lines (101 loc) · 2.21 KB

Version

  • Full name: \Jean85\Version

Constants

Constant Visibility Type Value
SHORT_COMMIT_LENGTH private 7
NO_VERSION_TEXT public '{no version}'
NO_REFERENCE_TEXT public '{no reference}'

Properties

packageName

private string $packageName

prettyVersion

private string $prettyVersion

reference

private string $reference

versionIsTagged

private bool $versionIsTagged

Methods

__construct

public __construct(string $packageName, ?string $prettyVersion = null, ?string $reference = null): mixed

Parameters:

Parameter Type Description
$packageName string
$prettyVersion ?string
$reference ?string

getPrettyVersion

public getPrettyVersion(): string

getFullVersion

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

getPackageName

public getPackageName(): string

getShortVersion

public getShortVersion(): string

getCommitHash

public getCommitHash(): string
  • Warning: this method is deprecated. This means that this method will likely be removed in a future version.

getReference

public getReference(): string

getShortCommitHash

public getShortCommitHash(): string
  • Warning: this method is deprecated. This means that this method will likely be removed in a future version.

getShortReference

public getShortReference(): string

__toString

public __toString(): string