Skip to content
Last updated

WHMCS\Billing\Payment\Dispute\DisputeCollection

Class · extends Collection

Methods

factoryFromItems

public static function factoryFromItems(DisputeInterface ...$dispute): DisputeCollection

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

Returns static

factoryFromArray

public static function factoryFromArray(array $disputes): DisputeCollection

Make a DisputeCollection object from an array of data.

Parameters

TypeNameDescription
array$disputesAn array of disputes made from a DisputeInterface object.

Returns static

addDispute

public function addDispute(DisputeInterface $dispute): self

Add a single DisputeInterface object to an existing BalanceCollection.

Parameters

TypeNameDescription
DisputeInterface$disputeA single DisputeInterface object

Returns $this