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
Afficher le fichier Open project: wellcommerce/wellcommerce Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

addProductPhoto() public méthode

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

getAttributeGroup() public méthode

public getAttributeGroup ( ) : WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface
Résultat WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface

getBuyPrice() public méthode

public getBuyPrice ( ) : Price
Résultat WellCommerce\Bundle\AppBundle\Entity\Price

getBuyPriceTax() public méthode

public getBuyPriceTax ( ) : WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
Résultat WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

getCategories() public méthode

public getCategories ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getDimension() public méthode

public getDimension ( ) : Dimension
Résultat WellCommerce\Bundle\AppBundle\Entity\Dimension

getPackageSize() public méthode

public getPackageSize ( ) : float
Résultat float

getProductPhotos() public méthode

public getProductPhotos ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getReviews() public méthode

public getReviews ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getSellPrice() public méthode

public getSellPrice ( ) : DiscountablePrice
Résultat WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice

getSellPriceTax() public méthode

public getSellPriceTax ( ) : WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
Résultat WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

getSku() public méthode

public getSku ( ) : string
Résultat string

getStatuses() public méthode

public getStatuses ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getStock() public méthode

public getStock ( ) : integer
Résultat integer

getTrackStock() public méthode

public getTrackStock ( ) : boolean
Résultat boolean

getVariants() public méthode

public getVariants ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

getWeight() public méthode

public getWeight ( ) : float
Résultat float

removeVariant() public méthode

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

setAttributeGroup() public méthode

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

setBuyPrice() public méthode

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

setBuyPriceTax() public méthode

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

setCategories() public méthode

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

setDimension() public méthode

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

setPackageSize() public méthode

public setPackageSize ( float $packageSize )
$packageSize float

setProductPhotos() public méthode

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

setSellPrice() public méthode

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

setSellPriceTax() public méthode

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

setSku() public méthode

public setSku ( string $sku )
$sku string

setStatuses() public méthode

public setStatuses ( Doctrine\Common\Collections\Collection $statuses ) : Doctrine\Common\Collections\Collection
$statuses Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection

setStock() public méthode

public setStock ( integer $stock )
$stock integer

setTrackStock() public méthode

public setTrackStock ( boolean $trackStock )
$trackStock boolean

setVariants() public méthode

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

setWeight() public méthode

public setWeight ( float $weight )
$weight float