File ManagerCurrent Directory: wp-content/plugins/backwpup/inc/dependencies/inpsyde/plugin-environment-checker/src/ConstraintsLinux appserver-7a7af3b2-php-0c9ec09e2f9746c2a80fa3756c076432 6.12.94+ #1 SMP Fri Jul 17 09:26:56 UTC 2026 x86_64Edit File: AbstractVersionConstraint.php <?php namespace Inpsyde\EnvironmentChecker\Constraints; use Inpsyde\EnvironmentChecker\Exception\ConstraintFailedException; abstract class AbstractVersionConstraint implements ConstraintInterface { /** * @var string Version against we need to check */ protected $requiredVersion; /** * @var mixed|null className of the plugin we need to check against */ protected $requiredPluginName; /** * @var string */ protected $message; /** * @var string */ protected $error; /** * PhpAbstractVersionConstraint constructor. * * @param $requiredVersion * @param null $requiredPluginName Used to pass the name of the plugin to check */ public function __construct($requiredVersion, $requiredPluginName = null) { $this->requiredVersion = $requiredVersion; $this->requiredPluginName = $requiredPluginName; $this->error = ''; $this->message = ''; } /** * Check if $actualVersion less then $requiredVersion. * * @param string $actualVersion * * @return bool * @throws ConstraintFailedException */ protected function checkVersion($actualVersion) { $result = version_compare( $actualVersion, $this->requiredVersion, '>=' ); if ($result) { return $result; } throw new ConstraintFailedException( $this, $actualVersion, [$this->error], $this->message ); } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirAbstractVersionConstraint.phpFile1.32 KB Rename | Delete | EditConstraintInterface.phpFile556.00 B Rename | Delete | EditConstraintsCollection.phpFile497.00 B Rename | Delete | EditExtensionConstraint.phpFile880.00 B Rename | Delete | EditPhpConstraint.phpFile578.00 B Rename | Delete | EditPluginConstraint.phpFile2.11 KB Rename | Delete | EditWordPressConstraint.phpFile702.00 B Rename | Delete | Edit