Dumplie\CustomerService\Infrastructure\InMemory\InMemoryPayments::add PHP Method

add() public method

public add ( Payment $payment )
$payment Dumplie\CustomerService\Domain\Payment
    public function add(Payment $payment)
    {
        $this->payments[(string) $payment->id()] = $payment;
    }