Version
in package
FinalYes
Table of Contents
Properties
- $commitDate : DateTimeImmutable
- $commitSha : string
- $pkgVersion : string
Methods
- __construct() : mixed
- fromArray() : Version
- getCommitDate() : DateTimeImmutable
- getCommitSha() : non-empty-string
- getPkgVersion() : string
Properties
$commitDate read-only
private
DateTimeImmutable
$commitDate
$commitSha read-only
private
string
$commitSha
$pkgVersion read-only
private
string
$pkgVersion
Methods
__construct()
public
__construct(non-empty-string $commitSha, DateTimeImmutable $commitDate, non-empty-string $pkgVersion) : mixed
Parameters
- $commitSha : non-empty-string
- $commitDate : DateTimeImmutable
- $pkgVersion : non-empty-string
fromArray()
public
static fromArray(array{commitSha: non-empty-string, commitDate: non-empty-string, pkgVersion: non-empty-string} $data) : Version
Parameters
- $data : array{commitSha: non-empty-string, commitDate: non-empty-string, pkgVersion: non-empty-string}
Return values
VersiongetCommitDate()
public
getCommitDate() : DateTimeImmutable
Return values
DateTimeImmutablegetCommitSha()
public
getCommitSha() : non-empty-string
Return values
non-empty-stringgetPkgVersion()
public
getPkgVersion() : string