BraintreeRangeNode

The PayPal for WooCommerce Braintree RangeNode class.

Defined (1)

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

/classes/lib/Braintree/Braintree/RangeNode.php  
  1. class RangeNode 
  2. public function __construct($name) 
  3. $this->name = $name; 
  4. $this->searchTerms = []; 
  5.  
  6. public function greaterThanOrEqualTo($value) 
  7. $this->searchTerms['min'] = $value; 
  8. return $this; 
  9.  
  10. public function lessThanOrEqualTo($value) 
  11. $this->searchTerms['max'] = $value; 
  12. return $this; 
  13.  
  14. public function is($value) 
  15. $this->searchTerms['is'] = $value; 
  16. return $this; 
  17.  
  18. public function between($min, $max) 
  19. return $this->greaterThanOrEqualTo($min)->lessThanOrEqualTo($max); 
  20.  
  21. public function toParam() 
  22. return $this->searchTerms;