first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
class Brizy_Editor_Data_ProjectMergeStrategy {
/**
* @param $version
*
* @return Brizy_Editor_Data_ProjectMergeStrategyInterface
*/
static public function getMergerInstance( $version ) {
if ( version_compare( $version, '1.0.81' ) <= 0 ) {
return new Brizy_Editor_Data_ProjectMerge81();
}
return new Brizy_Editor_Data_ProjectMerge82();
}
/**
* This code needs to be updated if the project data will change.
*
* @param $version
*
* @return bool
*/
static public function checkVersionCompatibility( $version ) {
if ( version_compare( $version, '1.0.81' ) > 0 && version_compare( $version, BRIZY_VERSION ) <= 0 ) {
return true;
}
return false;
}
}