You are here

public function Braintree_ResourceCollection::__construct in Commerce Braintree 7

set up the resource collection

expects an array of attributes with literal keys

Parameters

array $attributes:

array $pagerAttribs:

File

braintree_php/lib/Braintree/ResourceCollection.php, line 44

Class

Braintree_ResourceCollection
ResourceCollection is a container object for result data

Code

public function __construct($response, $pager) {
  $this->_pageSize = $response["searchResults"]["pageSize"];
  $this->_ids = $response["searchResults"]["ids"];
  $this->_pager = $pager;
}