Inpsyde\MultilingualPress\Common\Type\SemanticVersionNumber::__construct PHP Method

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( mixed $version )
$version mixed Version source.
    public function __construct($version)
    {
        if (is_scalar($version) || is_object($version) && method_exists($version, '__toString')) {
            $this->version = $this->get_semantic_version_number((string) $version);
        }
    }