PHP Class Dumplie\CustomerService\Infrastructure\InMemory\InMemoryPayments

Inheritance: implements Dumplie\CustomerService\Domain\Payments
Datei anzeigen Open project: dumplie/dumplie

Public Methods

Method Description
__construct ( array $payments = [] )
add ( Payment $payment )
getById ( PaymentId $paymentId ) : Payment

Method Details

__construct() public method

public __construct ( array $payments = [] )
$payments array

add() public method

public add ( Payment $payment )
$payment Dumplie\CustomerService\Domain\Payment

getById() public method

public getById ( PaymentId $paymentId ) : Payment
$paymentId Dumplie\CustomerService\Domain\PaymentId
return Dumplie\CustomerService\Domain\Payment