public function Braintree_Collection::set in Commerce Braintree 7
Set index's value
Parameters
integer $index:
mixed $value:
Throws
OutOfRangeException
1 call to Braintree_Collection::set()
- Braintree_Collection::offsetSet in braintree_php/
lib/ Braintree/ Collection.php - Set offset to value Implements ArrayAccess
File
- braintree_php/
lib/ Braintree/ Collection.php, line 44
Class
- Braintree_Collection
- Generic Collection class
Code
public function set($index, $value) {
if ($index >= $this
->count()) {
throw new OutOfRangeException('Index out of range');
}
$this->_collection[$index] = $value;
}