Validating
May 12, 2013 · View on GitHub
The Herrera\Version\Validator class is meant to be used indirectly through
the other classes. However, you may use it to validate version information
according to the Semantic Versioning specification:
bool isIdentifier(str $identifier)— returnstrueif the identifier is valid, false if not. An identifier may belong to either a pre-release version number or build metadatabool isNumber(int|str $number)— returnstrueif the version number is valid, or false if notbool isVersion(str $version)— returnstrueif the string is a valid version string representation,falseif not