File "StringVersionFactoryInterface.php"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/woocommerce-paypal-payments/vendor/dhii/package-interface/src/Version/StringVersionFactoryInterface.php
File size: 623 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare(strict_types=1);
namespace Dhii\Package\Version;
use DomainException;
use Exception;
/**
* Represents a factory that can create a version from a version string.
*/
interface StringVersionFactoryInterface
{
/**
* Creates a new version from a version string.
*
* @param string $version The SemVer compatible version string.
*
* @return VersionInterface The new version.
*
* @throws DomainException If version string is malformed.
* @throws Exception If problem creating.
*/
public function createVersionFromString(string $version): VersionInterface;
}