Method | Description | |
---|---|---|
__construct ( mixed $version ) | Constructor. Sets up the properties. | |
__toString ( ) : string | Returns the version string. |
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. |
public __construct ( mixed $version ) | ||
$version | mixed | Version source. |
public __toString ( ) : string | ||
return | string | Version string. |