PHP Class Dumplie\Inventory\Infrastructure\InMemory\InMemoryProducts

Inheritance: implements Dumplie\Inventory\Domain\Products
Mostrar archivo Open project: dumplie/dumplie

Public Methods

Method Description
__construct ( array $products = [] )
add ( Product $product )
getBySku ( SKU $SKU ) : Product

Method Details

__construct() public method

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

add() public method

public add ( Product $product )
$product Dumplie\Inventory\Domain\Product

getBySku() public method

public getBySku ( SKU $SKU ) : Product
$SKU Dumplie\SharedKernel\Domain\Product\SKU
return Dumplie\Inventory\Domain\Product