PHP Class Dumplie\Inventory\Tests\AbstractInventoryContext

Inheritance: implements Dumplie\Inventory\Tests\InventoryContext
Datei anzeigen Open project: dumplie/dumplie

Protected Properties

Property Type Description
$commandBus Dumplie\SharedKernel\Tests\Context\CommandBusFactory
$products Dumplie\Inventory\Domain\Products

Public Methods

Method Description
addProduct ( string $sku, integer $price, string $currency = "EUR", boolean $available = true )
commandBus ( ) : Dumplie\SharedKernel\Application\CommandBus
products ( ) : Dumplie\Inventory\Domain\Products

Protected Methods

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

Method Details

addProduct() public method

public addProduct ( string $sku, integer $price, string $currency = "EUR", boolean $available = true )
$sku string
$price integer
$currency string
$available boolean

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, Dumplie\SharedKernel\Application\EventLog $eventLog, array $commandExtension = [] ) : Dumplie\SharedKernel\Application\CommandBus
$commandBusFactory Dumplie\SharedKernel\Tests\Context\CommandBusFactory
$eventLog Dumplie\SharedKernel\Application\EventLog
$commandExtension array
return Dumplie\SharedKernel\Application\CommandBus

products() public method

public products ( ) : Dumplie\Inventory\Domain\Products
return Dumplie\Inventory\Domain\Products

Property Details

$commandBus protected_oe property

protected CommandBusFactory,Dumplie\SharedKernel\Tests\Context $commandBus
return Dumplie\SharedKernel\Tests\Context\CommandBusFactory

$products protected_oe property

protected Products,Dumplie\Inventory\Domain $products
return Dumplie\Inventory\Domain\Products