PHP Class Dumplie\Inventory\Tests\AbstractInventoryContext

Inheritance: implements Dumplie\Inventory\Tests\InventoryContext
Afficher le fichier Open project: dumplie/dumplie

Protected Properties

Свойство Type Description
$commandBus Dumplie\SharedKernel\Tests\Context\CommandBusFactory
$products Dumplie\Inventory\Domain\Products

Méthodes publiques

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

Méthodes protégées

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

Method Details

addProduct() public méthode

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

commandBus() public méthode

public commandBus ( ) : Dumplie\SharedKernel\Application\CommandBus
Résultat Dumplie\SharedKernel\Application\CommandBus

createCommandBus() protected méthode

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
Résultat Dumplie\SharedKernel\Application\CommandBus

products() public méthode

public products ( ) : Dumplie\Inventory\Domain\Products
Résultat Dumplie\Inventory\Domain\Products

Property Details

$commandBus protected_oe property

protected CommandBusFactory,Dumplie\SharedKernel\Tests\Context $commandBus
Résultat Dumplie\SharedKernel\Tests\Context\CommandBusFactory

$products protected_oe property

protected Products,Dumplie\Inventory\Domain $products
Résultat Dumplie\Inventory\Domain\Products