\DeviceAtlas\DeviceVersion

Encapsulates a version number string and allows for comparison to other version numbers.

Only numeric semantic version numbers are supported.

  • If any part of the version number has a suffix then the suffix is ignored.
  • If any part of the version number does not start with a digit then it is treated as zero value.

Summary

Methods
Properties
Constants
__construct()
update()
compareTo()
versionFromString()
$v
No constants found
No protected methods found
No protected properties found
N/A
createVersionParts()
$DELIM
$mP
$vP
N/A

Properties

$v

$v : 

Type

$DELIM

$DELIM : 

Type

$mP

$mP : 

Type

$vP

$vP : 

Type

Methods

__construct()

__construct(  $version,   $maxParts = null) 

Parameters

$version
$maxParts
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

update()

update(  $maxParts) 

Parameters

$maxParts
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

compareTo()

compareTo(  $version) 

Parameters

$version
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

versionFromString()

versionFromString(  $versionString) 

Parameters

$versionString
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

createVersionParts()

createVersionParts() 

Convert a version string to an array of integer parts for easier comparison.

Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275