PHP Class Dumplie\Inventory\Application\Command\CreateProduct

Inheritance: implements Dumplie\SharedKernel\Application\Command\Command, use trait Dumplie\SharedKernel\Application\Command\CommandSerialize
显示文件 Open project: dumplie/dumplie Class Usage Examples

Public Methods

Method Description
__construct ( string $sku, integer $amount, string $currency, boolean $isInStock, integer $precision = Price::DEFAULT_PRECISION ) CreateProduct constructor.
amount ( ) : integer
currency ( ) : string
isInStock ( ) : boolean
precision ( ) : integer
sku ( ) : string

Method Details

__construct() public method

CreateProduct constructor.
public __construct ( string $sku, integer $amount, string $currency, boolean $isInStock, integer $precision = Price::DEFAULT_PRECISION )
$sku string
$amount integer
$currency string
$isInStock boolean
$precision integer

amount() public method

public amount ( ) : integer
return integer

currency() public method

public currency ( ) : string
return string

isInStock() public method

public isInStock ( ) : boolean
return boolean

precision() public method

public precision ( ) : integer
return integer

sku() public method

public sku ( ) : string
return string