PHP Interface WellCommerce\Bundle\ProductBundle\Entity\ProductInterface

Author: Adam Piotrowski ([email protected])
Inheritance: extends WellCommerce\Bundle\CoreBundle\Entity\TranslatableInterface, extends WellCommerce\Bundle\CoreBundle\Entity\TimestampableInterface, extends WellCommerce\Bundle\CoreBundle\Entity\BlameableInterface, extends WellCommerce\Bundle\MultiStoreBundle\Entity\ShopCollectionAwareInterface, extends WellCommerce\Bundle\ProducerBundle\Entity\ProducerAwareInterface, extends WellCommerce\Bundle\UnitBundle\Entity\UnitAwareInterface, extends WellCommerce\Bundle\AvailabilityBundle\Entity\AvailabilityAwareInterface
ファイルを表示 Open project: wellcommerce/wellcommerce Interface Usage Examples

Public Methods

Method Description
addCategory ( WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface $category )
addProductPhoto ( WellCommerce\Bundle\ProductBundle\Entity\ProductPhoto $photo )
getAttributeGroup ( ) : WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface
getBuyPrice ( ) : Price
getBuyPriceTax ( ) : WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
getCategories ( ) : Doctrine\Common\Collections\Collection
getDimension ( ) : Dimension
getPackageSize ( ) : float
getProductPhotos ( ) : Doctrine\Common\Collections\Collection
getReviews ( ) : Doctrine\Common\Collections\Collection
getSellPrice ( ) : DiscountablePrice
getSellPriceTax ( ) : WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
getSku ( ) : string
getStatuses ( ) : Doctrine\Common\Collections\Collection
getStock ( ) : integer
getTrackStock ( ) : boolean
getVariants ( ) : Doctrine\Common\Collections\Collection
getWeight ( ) : float
removeVariant ( WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant )
setAttributeGroup ( WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface $attributeGroup )
setBuyPrice ( Price $buyPrice )
setBuyPriceTax ( WellCommerce\Bundle\TaxBundle\Entity\TaxInterface $buyPriceTax )
setCategories ( Doctrine\Common\Collections\Collection $collection )
setDimension ( Dimension $dimension )
setPackageSize ( float $packageSize )
setProductPhotos ( Doctrine\Common\Collections\Collection $photos )
setSellPrice ( DiscountablePrice $sellPrice )
setSellPriceTax ( WellCommerce\Bundle\TaxBundle\Entity\TaxInterface $sellPriceTax )
setSku ( string $sku )
setStatuses ( Doctrine\Common\Collections\Collection $statuses ) : Doctrine\Common\Collections\Collection
setStock ( integer $stock )
setTrackStock ( boolean $trackStock )
setVariants ( Doctrine\Common\Collections\Collection $attributes )
setWeight ( float $weight )

Method Details

addCategory() public method

public addCategory ( WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface $category )
$category WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface

addProductPhoto() public method

public addProductPhoto ( WellCommerce\Bundle\ProductBundle\Entity\ProductPhoto $photo )
$photo WellCommerce\Bundle\ProductBundle\Entity\ProductPhoto

getAttributeGroup() public method

public getAttributeGroup ( ) : WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface
return WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface

getBuyPrice() public method

public getBuyPrice ( ) : Price
return WellCommerce\Bundle\AppBundle\Entity\Price

getBuyPriceTax() public method

public getBuyPriceTax ( ) : WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
return WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

getCategories() public method

public getCategories ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getDimension() public method

public getDimension ( ) : Dimension
return WellCommerce\Bundle\AppBundle\Entity\Dimension

getPackageSize() public method

public getPackageSize ( ) : float
return float

getProductPhotos() public method

public getProductPhotos ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getReviews() public method

public getReviews ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getSellPrice() public method

public getSellPrice ( ) : DiscountablePrice
return WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice

getSellPriceTax() public method

public getSellPriceTax ( ) : WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
return WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

getSku() public method

public getSku ( ) : string
return string

getStatuses() public method

public getStatuses ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getStock() public method

public getStock ( ) : integer
return integer

getTrackStock() public method

public getTrackStock ( ) : boolean
return boolean

getVariants() public method

public getVariants ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

getWeight() public method

public getWeight ( ) : float
return float

removeVariant() public method

public removeVariant ( WellCommerce\Bundle\ProductBundle\Entity\VariantInterface $variant )
$variant WellCommerce\Bundle\ProductBundle\Entity\VariantInterface

setAttributeGroup() public method

public setAttributeGroup ( WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface $attributeGroup )
$attributeGroup WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface

setBuyPrice() public method

public setBuyPrice ( Price $buyPrice )
$buyPrice WellCommerce\Bundle\AppBundle\Entity\Price

setBuyPriceTax() public method

public setBuyPriceTax ( WellCommerce\Bundle\TaxBundle\Entity\TaxInterface $buyPriceTax )
$buyPriceTax WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

setCategories() public method

public setCategories ( Doctrine\Common\Collections\Collection $collection )
$collection Doctrine\Common\Collections\Collection

setDimension() public method

public setDimension ( Dimension $dimension )
$dimension WellCommerce\Bundle\AppBundle\Entity\Dimension

setPackageSize() public method

public setPackageSize ( float $packageSize )
$packageSize float

setProductPhotos() public method

public setProductPhotos ( Doctrine\Common\Collections\Collection $photos )
$photos Doctrine\Common\Collections\Collection

setSellPrice() public method

public setSellPrice ( DiscountablePrice $sellPrice )
$sellPrice WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice

setSellPriceTax() public method

public setSellPriceTax ( WellCommerce\Bundle\TaxBundle\Entity\TaxInterface $sellPriceTax )
$sellPriceTax WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

setSku() public method

public setSku ( string $sku )
$sku string

setStatuses() public method

public setStatuses ( Doctrine\Common\Collections\Collection $statuses ) : Doctrine\Common\Collections\Collection
$statuses Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

setStock() public method

public setStock ( integer $stock )
$stock integer

setTrackStock() public method

public setTrackStock ( boolean $trackStock )
$trackStock boolean

setVariants() public method

public setVariants ( Doctrine\Common\Collections\Collection $attributes )
$attributes Doctrine\Common\Collections\Collection

setWeight() public method

public setWeight ( float $weight )
$weight float