PHP Class Inpsyde\MultilingualPress\Common\Type\SemanticVersionNumber

See also: http://semver.org/#semantic-versioning-specification-semver
Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Common\Type\VersionNumber
Datei anzeigen Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( mixed $version ) Constructor. Sets up the properties.
__toString ( ) : string Returns the version string.

Private Methods

Method Description
format_version ( string $version ) : string Formats the given number according to the Semantic Versioning specification.
get_semantic_version_number ( string $version ) : string Returns a sanitized semantic version number string for the given version.
sanitize_version ( string $version ) : string Removes invalid characters, and inserts dots between numeric and non-numeric characters.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( mixed $version )
$version mixed Version source.

__toString() public method

Returns the version string.
Since: 3.0.0
public __toString ( ) : string
return string Version string.