File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/inpsyde/plugin-environment-checker/src/ConstraintsLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 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