PHP Class Dumplie\Inventory\Infrastructure\InMemory\InMemoryProducts

Inheritance: implements Dumplie\Inventory\Domain\Products
Afficher le fichier Open project: dumplie/dumplie

Méthodes publiques

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

Method Details

__construct() public méthode

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

add() public méthode

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

getBySku() public méthode

public getBySku ( SKU $SKU ) : Product
$SKU Dumplie\SharedKernel\Domain\Product\SKU
Résultat Dumplie\Inventory\Domain\Product