Documentation

Version
in package

Table of Contents

NO_REFERENCE_TEXT  = '{no reference}'
NO_VERSION_TEXT  = '{no version}'
SHORT_COMMIT_LENGTH  = 7
$packageName  : string
$prettyVersion  : string
$reference  : string
$versionIsTagged  : bool
__construct()  : mixed
__toString()  : string
getCommitHash()  : string
getFullVersion()  : string
getPackageName()  : string
getPrettyVersion()  : string
getReference()  : string
getShortCommitHash()  : string
getShortReference()  : string
getShortVersion()  : string
getVersionWithShortCommit()  : string
getVersionWithShortReference()  : string

Constants

NO_REFERENCE_TEXT

public mixed NO_REFERENCE_TEXT = '{no reference}'

NO_VERSION_TEXT

public mixed NO_VERSION_TEXT = '{no version}'

SHORT_COMMIT_LENGTH

private mixed SHORT_COMMIT_LENGTH = 7

Properties

$packageName

private string $packageName

$prettyVersion

private string $prettyVersion

$reference

private string $reference

$versionIsTagged

private bool $versionIsTagged

Methods

__construct()

public __construct(string $packageName[, string|null $prettyVersion = null ][, string|null $reference = null ]) : mixed
Parameters
$packageName : string
$prettyVersion : string|null = null
$reference : string|null = null
Return values
mixed

__toString()

public __toString() : string
Return values
string

getCommitHash()

public getCommitHash() : string
Tags
deprecated
Return values
string

getFullVersion()

public getFullVersion() : string
Return values
string

getPackageName()

public getPackageName() : string
Return values
string

getPrettyVersion()

public getPrettyVersion() : string
Return values
string

getReference()

public getReference() : string
Return values
string

getShortCommitHash()

public getShortCommitHash() : string
Tags
deprecated
Return values
string

getShortReference()

public getShortReference() : string
Return values
string

getShortVersion()

public getShortVersion() : string
Return values
string

getVersionWithShortCommit()

public getVersionWithShortCommit() : string
Tags
deprecated
Return values
string

getVersionWithShortReference()

public getVersionWithShortReference() : string
Return values
string

Search results