class DisputeCollection extends Collection

Methods summary

Return Type Method Name Description
static DisputeCollection factoryFromItems(DisputeInterface $dispute) The recommended method for creating a DisputeCollection object that should be returned via the custom gateway module.
static DisputeCollection factoryFromArray(array $disputes) Make a DisputeCollection object from an array of data.
DisputeCollection addDispute(DisputeInterface $dispute) Add a single DisputeInterface object to an existing BalanceCollection.

Details

static DisputeCollection factoryFromItems (DisputeInterface $dispute)

The recommended method for creating a DisputeCollection object that should be returned via the custom gateway module.

Parameters

DisputeInterface $dispute An array of DisputeInterface objects

Return Value

DisputeCollection

static DisputeCollection factoryFromArray (array $disputes)

Make a DisputeCollection object from an array of data.

Parameters

array $disputes An array of disputes made from a DisputeInterface object.

Return Value

DisputeCollection

DisputeCollection addDispute (DisputeInterface $dispute)

Add a single DisputeInterface object to an existing BalanceCollection.

Parameters

DisputeInterface $dispute A single DisputeInterface object

Return Value

DisputeCollection