File manager - Edit - /home/adiance/public_html/wp-content/plugins/amp/vendor/ampproject/optimizer/src/Exception/InvalidConfigurationKey.php
Back
<?php namespace AmpProject\Optimizer\Exception; use OutOfBoundsException; /** * Exception thrown when an invalid configuration key was provided. * * @package ampproject/optimizer */ final class InvalidConfigurationKey extends OutOfBoundsException implements AmpOptimizerException { /** * Instantiate an InvalidConfigurationKey exception for an invalid key. * * @param string $key Key that was invalid. * @return self */ public static function fromKey($key) { $message = "The provided configuration key '{$key}' is not valid."; return new self($message); } /** * Instantiate an InvalidConfigurationKey exception for an invalid transformer configuration key. * * @param string $transformer Transformer class or identifier. * @param string $key Key that was invalid. * @return self */ public static function fromTransformerKey($transformer, $key) { $parts = explode('\\', $transformer); $transformer = array_pop($parts); $message = "The provided configuration key '{$key}' is not valid for the transformer '{$transformer}'."; return new self($message); } }
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings