Whip_InvalidOperatorType

Class InvalidOperatorType.

Defined (1)

The class is defined in the following location(s).

/vendor/yoast/whip/src/exceptions/Whip_InvalidOperatorType.php  
  1. class Whip_InvalidOperatorType extends Exception { 
  2.  
  3. private $validOperators = array( '=', '==', '===', '<', '>', '<=', '>=' ); 
  4.  
  5. /** 
  6. * InvalidOperatorType constructor. 
  7. * @param string $value 
  8. */ 
  9. public function __construct( $value ) { 
  10. parent::__construct( 
  11. sprintf( 'Invalid operator of %s used. Please use one of the following operators: %s',  
  12. $value,  
  13. implode( ', ', $this->validOperators ) 
  14. ) );