VersionInfoFileReader

Extends \AbstractVersionInfoReader

Class VersionInfoFileReader

category

System

package

VersionInfo

subpackage

Reader

extends

AbstractVersionInfoReader

Methods

VersionInfoFileReader constructor.

__construct(\ExistingDirectory $existingDirectory, \VersionInfoItemFactory $versionInfoItemFactory) 

Arguments

$existingDirectory

\ExistingDirectory

$versionInfoItemFactory

\VersionInfoItemFactory

Checks for an beta version to set the changelog start version.

_checkForBetaVersions(string $changelogVersionURL) : string
inherited

Arguments

$changelogVersionURL

string

Response

string

$changelogStartByVersion

Determine the changelog base URl with special case to '/'.

_determineChangelogBaseURLSpecialCase(string $changelogVersionURL, string $versionInfoItemVendorString, string $versionInfoItemNameString, string $changelogBaseURL) : string
inherited

Arguments

$changelogVersionURL

string

$versionInfoItemVendorString

string

$versionInfoItemNameString

string

$changelogBaseURL

string

Response

string

$changelogBaseURL

Determine the changelog base URL with special cases.

_determineChangelogSpecialVersionsBaseURL(string $changelogVersionURL, string $changelogBaseURL) : string
inherited

Arguments

$changelogVersionURL

string

$changelogBaseURL

string

Response

string

$changelogBaseURL

Determine the changelog version URL with special cases.

_determineChangelogSpecialVersionsURL(string $changelogVersionURL) : string
inherited

Arguments

$changelogVersionURL

string

Response

string

$changelogVersionURL

Determines the changelog url of the version info items while considering known edge cases.

_determineChangelogURL(\NonEmptyStringType $versionInfoItemVersion, \NonEmptyStringType $versionInfoItemVendor, \NonEmptyStringType $versionInfoItemName) : string
inherited

Arguments

$versionInfoItemVersion

\NonEmptyStringType

$versionInfoItemVendor

\NonEmptyStringType

$versionInfoItemName

\NonEmptyStringType

Response

string

$changelogVersionURL

Determine the changelog version URL with special cases.

_determineChangelogVersionURLSpecialCases(string $changelogVersionURL, string $versionInfoItemVendorString, string $versionInfoItemNameString) : string
inherited

Arguments

$changelogVersionURL

string

$versionInfoItemVendorString

string

$versionInfoItemNameString

string

Response

string

$changelogVersionURL

Determines the name of the version info items while considering known edge cases.

_determineName(\NonEmptyStringType $versionInfoItemName) : string
inherited

Arguments

$versionInfoItemName

\NonEmptyStringType

Response

string

$versionInfoItemName

Determines the vendor of the version info items while considering known edge cases.

_determineVendor(\NonEmptyStringType $versionInfoFilename) : string

Arguments

$versionInfoFilename

\NonEmptyStringType

Response

string

$versionInfoItemName

Determines the version of the version info items while considering known edge cases.

_determineVersion(\NonEmptyStringType $versionInfoFilePath) : string

Arguments

$versionInfoFilePath

\NonEmptyStringType

Response

string

$version

Returns true if on special case true is.

_isSpecialCase(string $versionInfoItemVendorString, string $versionInfoItemNameString, string $changelogVersionURL) : boolean
inherited

Arguments

$versionInfoItemVendorString

string

$versionInfoItemNameString

string

$changelogVersionURL

string

Response

boolean

Returns true if the Version is over 2.0.11.0 .

_isVersionOverMinVersion(array $versionCompare) : boolean
inherited

Arguments

$versionCompare

array

Response

boolean

Returns all VersionInfoFileItems from file system.

getAllVersionInfoItems() : array<mixed,\VersionInfoFileItem>

Response

array<mixed,\VersionInfoFileItem>

Properties

versionInfoFilePath

versionInfoFilePath : string
var

Type(s)

string

versionInfoItemFactory

versionInfoItemFactory : \VersionInfoItemFactory