class Braintree_RangeNode in Commerce Braintree 7
Hierarchy
- class \Braintree_RangeNode
Expanded class hierarchy of Braintree_RangeNode
3 string references to 'Braintree_RangeNode'
- Braintree_SubscriptionSearchTest::testSearch_billingCyclesRemaining_isRangeNode in braintree_php/
tests/ unit/ SubscriptionSearchTest.php - Braintree_SubscriptionSearchTest::testSearch_daysPastDue_isRangeNode in braintree_php/
tests/ unit/ SubscriptionSearchTest.php - Braintree_SubscriptionSearchTest::testSearch_price_isRangeNode in braintree_php/
tests/ unit/ SubscriptionSearchTest.php
File
- braintree_php/
lib/ Braintree/ RangeNode.php, line 3
View source
class Braintree_RangeNode {
function __construct($name) {
$this->name = $name;
$this->searchTerms = array();
}
function greaterThanOrEqualTo($value) {
$this->searchTerms['min'] = $value;
return $this;
}
function lessThanOrEqualTo($value) {
$this->searchTerms['max'] = $value;
return $this;
}
function is($value) {
$this->searchTerms['is'] = $value;
return $this;
}
function between($min, $max) {
return $this
->greaterThanOrEqualTo($min)
->lessThanOrEqualTo($max);
}
function toParam() {
return $this->searchTerms;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Braintree_RangeNode:: |
function | |||
Braintree_RangeNode:: |
function | |||
Braintree_RangeNode:: |
function | |||
Braintree_RangeNode:: |
function | |||
Braintree_RangeNode:: |
function | |||
Braintree_RangeNode:: |
function |