$result = Customer::all();
foreach($result as $transaction) {
print_r($transaction->id);
}
Mostrar archivo
Open project: braintree/braintree_php
Class Usage Examples
Method | Description | |
---|---|---|
__construct ( array $response, array $pager ) | set up the resource collection | |
current ( ) | returns the current item when iterating with foreach | |
firstItem ( ) : mixed | returns the first item in the collection | |
getIds ( ) : array | returns all IDs in the collection | |
key ( ) | ||
maximumCount ( ) | ||
next ( ) | advances to the next item in the collection when iterating with foreach | |
rewind ( ) | rewinds the testIterateOverResults collection to the first item when iterating with foreach | |
valid ( ) | returns whether the current item is valid when iterating with foreach |
Method | Description | |
---|---|---|
_getNextPage ( ) | ||
_getPage ( $ids ) : void | requests the next page of results for the collection |
public __construct ( array $response, array $pager ) | ||
$response | array | |
$pager | array |
public next ( ) |
public rewind ( ) |
public valid ( ) |