Skip to content

Commit

Permalink
Update NumericRange.php
Browse files Browse the repository at this point in the history
  • Loading branch information
kinncj committed May 9, 2013
1 parent 3cc4f34 commit abe13eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PHPFluent/ElasticQueryBuilder/NumericRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ class NumericRange
/**
* @var stdClass $numeri_range The Numeric range representation
*/
public $numeric_range;
public $range;

/**
* {@inherit}
*
* @param string $field The attribute name
* @param string $lte Less than
* @param string $gte Greater than
* @param string $gte Greater than
*/
public function __construct($field, $lte, $gte)
{
$this->numeric_range = new \stdClass;
$this->numeric_range->$field = new \stdClass;
$this->numeric_range->$field->lte = $lte;
$this->numeric_range->$field->gte = $gte;
$this->range = new \stdClass;
$this->range->$field = new \stdClass;
$this->range->$field->to = (int) $lte;
$this->range->$field->from = (int) $gte;
}
}

0 comments on commit abe13eb

Please sign in to comment.