lib/Braintree/Collection.php
public function set($index, $value)
    {
        if($index >= $this->count())
            throw new OutOfRangeException('Index out of range');

        $this->_collection[$index] = $value;
    }
public function set($index, $value)
    {
        if($index >= $this->count())
            throw new OutOfRangeException('Index out of range');

        $this->_collection[$index] = $value;
    }
public function set ( $ index , $ value ) { if ( $ index >= $ this -> count ( ) ) throw new OutOfRangeException ( 'Index out of range' ) ; $ this -> _collection [ $ index ] = $ value ; }
Set index's value
@param integer $index
@param mixed $value
@throws OutOfRangeException
Set index s value