Menu

## Version
in package

Version.php : 12

### Table of Contents

$major : VersionNumber
$minor : VersionNumber
$originalVersionString : string
$patch : VersionNumber
$preReleaseSuffix : null|PreReleaseSuffix
__construct() : mixed
equals() : bool
getMajor() : VersionNumber
getMinor() : VersionNumber
getOriginalString() : string
getPatch() : VersionNumber
getPreReleaseSuffix() : PreReleaseSuffix
getVersionString() : string
hasPreReleaseSuffix() : bool
isGreaterThan() : bool
ensureVersionStringIsValid() : void
parseVersion() : void

### Properties

#### $major

Version.php : 17
`private VersionNumber $major`

#### $minor

Version.php : 20
`private VersionNumber $minor`

#### $originalVersionString

Version.php : 14
`private string $originalVersionString`

#### $patch

Version.php : 23
`private VersionNumber $patch`

#### $preReleaseSuffix

Version.php : 26
`private null|PreReleaseSuffix $preReleaseSuffix`

### Methods

#### __construct()

Version.php : 28
`public __construct(string $versionString) : mixed`

##### Parameters

$versionString : string

##### Return values

mixed —

#### equals()

Version.php : 64
`public equals(Version $other) : bool`

##### Parameters

$other : Version

##### Return values

bool —

#### getMajor()

Version.php : 108
`public getMajor() : VersionNumber`

##### Return values

VersionNumber —

#### getMinor()

Version.php : 112
`public getMinor() : VersionNumber`

##### Return values

VersionNumber —

#### getOriginalString()

Version.php : 41
`public getOriginalString() : string`

##### Return values

string —

#### getPatch()

Version.php : 116
`public getPatch() : VersionNumber`

##### Return values

VersionNumber —

#### getPreReleaseSuffix()

Version.php : 33
`public getPreReleaseSuffix() : PreReleaseSuffix`

##### Return values

PreReleaseSuffix —

#### getVersionString()

Version.php : 45
`public getVersionString() : string`

##### Return values

string —

#### hasPreReleaseSuffix()

Version.php : 60
`public hasPreReleaseSuffix() : bool`

##### Return values

bool —

#### isGreaterThan()

Version.php : 68
`public isGreaterThan(Version $version) : bool`

##### Parameters

$version : Version

##### Return values

bool —

#### ensureVersionStringIsValid()

Version.php : 140
`private ensureVersionStringIsValid(string $version) : void`

##### Parameters

$version : string

##### Tags

throws
  InvalidVersionException

##### Return values

void —

#### parseVersion()

Version.php : 125
`private parseVersion(array<string|int, string> $matches) : void`

##### Parameters

$matches : array<string|int, string>

##### Tags

throws
  InvalidPreReleaseSuffixException

##### Return values

void —

## Search results