* @author Dennis Eichhorn * @copyright 2013 Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 * @link http://orange-management.com */ namespace phpOMS\Version; use phpOMS\System\FilePathException; use phpOMS\Validation\Validator; /** * Version class. * * Responsible for handling versions * * @category Version * @package Framework * @author OMS Development Team * @author Dennis Eichhorn * @license OMS License 1.0 * @link http://orange-management.com * @since 1.0.0 */ class Version { /** * Constructor. * * @since 1.0.0 * @author Dennis Eichhorn */ private function __construct() { } /** * Comparing two versions. * * @param string $ver1 Version * @param string $ver2 Version * * @return int * * @since 1.0.0 * @author Dennis Eichhorn */ public static function compare(string $ver1, string $ver2) : int { return version_compare($ver1, $ver2); } }