You are here

public function Braintree_Collection::get in Commerce Braintree 7

Return value at index

Parameters

integer $index:

Return value

mixed

Throws

OutOfRangeException

1 call to Braintree_Collection::get()
Braintree_Collection::offsetGet in braintree_php/lib/Braintree/Collection.php
get an offset's value Implements ArrayAccess

File

braintree_php/lib/Braintree/Collection.php, line 71

Class

Braintree_Collection
Generic Collection class

Code

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