File "InvalidOperatorType.php"
Full Path: /home/itfekxul/theolympicssports.com/wp-content/plugins/wordpress-seo/vendor/yoast/whip/src/Exceptions/InvalidOperatorType.php
File size: 593 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Yoast\WHIPv2\Exceptions;
use Exception;
/**
* Class InvalidOperatorType.
*/
class InvalidOperatorType extends Exception {
/**
* InvalidOperatorType constructor.
*
* @param string $value Invalid operator.
* @param string[] $validOperators Valid operators.
*/
public function __construct( $value, $validOperators = array( '=', '==', '===', '<', '>', '<=', '>=' ) ) {
parent::__construct(
\sprintf(
'Invalid operator of %s used. Please use one of the following operators: %s',
$value,
\implode( ', ', $validOperators )
)
);
}
}