__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Yoast\WHIPv2;
use Yoast\WHIPv2\Exceptions\InvalidType;
use Yoast\WHIPv2\Interfaces\Requirement;
/**
* Class Configuration.
*/
class Configuration {
/**
* The configuration to use.
*
* @var array<string>
*/
private $configuration;
/**
* Configuration constructor.
*
* @param array<string, string> $configuration The configuration to use.
*
* @throws InvalidType When the $configuration parameter is not of the expected type.
*/
public function __construct( $configuration = array() ) {
if ( ! \is_array( $configuration ) ) {
throw new InvalidType( 'Configuration', $configuration, 'array' );
}
$this->configuration = $configuration;
}
/**
* Retrieves the configured version of a particular requirement.
*
* @param Requirement $requirement The requirement to check.
*
* @return string|int The version of the passed requirement that was detected as a string.
* If the requirement does not exist, this returns int -1.
*/
public function configuredVersion( Requirement $requirement ) {
if ( ! $this->hasRequirementConfigured( $requirement ) ) {
return -1;
}
return $this->configuration[ $requirement->component() ];
}
/**
* Determines whether the passed requirement is present in the configuration.
*
* @param Requirement $requirement The requirement to check.
*
* @return bool Whether or not the requirement is present in the configuration.
*/
public function hasRequirementConfigured( Requirement $requirement ) {
return \array_key_exists( $requirement->component(), $this->configuration );
}
}
| 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 |
|