PHP Class Dumplie\CustomerService\Tests\AbstractCustomerServiceContext

Inheritance: implements Dumplie\CustomerService\Tests\CustomerServiceContext
Datei anzeigen Open project: dumplie/dumplie

Protected Properties

Property Type Description
$commandBus Dumplie\SharedKernel\Application\CommandBus
$eventLog Dumplie\SharedKernel\Application\EventLog
$orders Dumplie\CustomerService\Domain\Orders
$payments Dumplie\CustomerService\Domain\Payments
$transactionFactory Dumplie\SharedKernel\Application\Transaction\Factory

Public Methods

Method Description
commandBus ( ) : Dumplie\SharedKernel\Application\CommandBus
createPaymentFor ( OrderId $orderId ) : PaymentId
customerPlacedOrder ( string $orderId )
orders ( ) : Dumplie\CustomerService\Domain\Orders
payments ( ) : Dumplie\CustomerService\Domain\Payments

Protected Methods

Method Description
createCommandBus ( Dumplie\SharedKernel\Tests\Context\CommandBusFactory $commandBusFactory, array $commandExtensions = [] ) : Dumplie\SharedKernel\Application\CommandBus

Method Details

commandBus() public method

public commandBus ( ) : Dumplie\SharedKernel\Application\CommandBus
return Dumplie\SharedKernel\Application\CommandBus

createCommandBus() protected method

protected createCommandBus ( Dumplie\SharedKernel\Tests\Context\CommandBusFactory $commandBusFactory, array $commandExtensions = [] ) : Dumplie\SharedKernel\Application\CommandBus
$commandBusFactory Dumplie\SharedKernel\Tests\Context\CommandBusFactory
$commandExtensions array
return Dumplie\SharedKernel\Application\CommandBus

createPaymentFor() public method

public createPaymentFor ( OrderId $orderId ) : PaymentId
$orderId Dumplie\CustomerService\Domain\OrderId
return Dumplie\CustomerService\Domain\PaymentId

customerPlacedOrder() public method

public customerPlacedOrder ( string $orderId )
$orderId string

orders() public method

public orders ( ) : Dumplie\CustomerService\Domain\Orders
return Dumplie\CustomerService\Domain\Orders

payments() public method

public payments ( ) : Dumplie\CustomerService\Domain\Payments
return Dumplie\CustomerService\Domain\Payments

Property Details

$commandBus protected_oe property

protected CommandBus,Dumplie\SharedKernel\Application $commandBus
return Dumplie\SharedKernel\Application\CommandBus

$eventLog protected_oe property

protected EventLog,Dumplie\SharedKernel\Application $eventLog
return Dumplie\SharedKernel\Application\EventLog

$orders protected_oe property

protected Orders,Dumplie\CustomerService\Domain $orders
return Dumplie\CustomerService\Domain\Orders

$payments protected_oe property

protected Payments,Dumplie\CustomerService\Domain $payments
return Dumplie\CustomerService\Domain\Payments

$transactionFactory protected_oe property

protected Factory,Dumplie\SharedKernel\Application\Transaction $transactionFactory
return Dumplie\SharedKernel\Application\Transaction\Factory