PHP Class WellCommerce\Bundle\ProductBundle\Entity\Product

Author: Adam Piotrowski ([email protected])
Inheritance: implements WellCommerce\Bundle\ProductBundle\Entity\ProductInterface, use trait WellCommerce\Bundle\DoctrineBundle\Entity\IdentifiableTrait, use trait Knp\DoctrineBehaviors\Model\Translatable\Translatable, use trait Knp\DoctrineBehaviors\Model\Timestampable\Timestampable, use trait Knp\DoctrineBehaviors\Model\Blameable\Blameable, use trait WellCommerce\Bundle\MediaBundle\Entity\MediaAwareTrait, use trait WellCommerce\Bundle\DoctrineBundle\Behaviours\Enableable\EnableableTrait, use trait WellCommerce\Bundle\AppBundle\Entity\HierarchyAwareTrait, use trait WellCommerce\Bundle\ShopBundle\Entity\ShopCollectionAwareTrait, use trait WellCommerce\Bundle\ProducerBundle\Entity\ProducerAwareTrait, use trait WellCommerce\Bundle\UnitBundle\Entity\UnitAwareTrait, use trait WellCommerce\Bundle\AvailabilityBundle\Entity\AvailabilityAwareTrait, use trait WellCommerce\Bundle\ProductBundle\Entity\Extra\ProductExtraTrait
Mostrar archivo Open project: wellcommerce/wellcommerce Class Usage Examples

Protected Properties

Property Type Description
$attributeGroup WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface
$buyPrice WellCommerce\Bundle\AppBundle\Entity\Price
$buyPriceTax WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
$categories Doctrine\Common\Collections\Collection
$dimension WellCommerce\Bundle\AppBundle\Entity\Dimension
$packageSize float
$productPhotos Doctrine\Common\Collections\Collection
$reviews Doctrine\Common\Collections\Collection
$sellPrice WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice
$sellPriceTax WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
$sku string
$statuses Doctrine\Common\Collections\Collection
$stock integer
$trackStock boolean
$variants Doctrine\Common\Collections\Collection
$weight float

Public Methods

Method Description
addCategory ( WellCommerce\Bundle\CategoryBundle\Entity\CategoryInterface $category )
addProductPhoto ( WellCommerce\Bundle\ProductBundle\Entity\ProductPhoto $photo )
getAttributeGroup ( )
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
getShippingCostCurrency ( ) : string
getShippingCostGrossPrice ( ) : float
getShippingCostQuantity ( ) : integer
getShippingCostWeight ( ) : float
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 )
setStock ( integer $stock )
setTrackStock ( boolean $trackStock )
setVariants ( Doctrine\Common\Collections\Collection $variants )
setWeight ( float $weight )

Protected Methods

Method Description
synchronizeVariants ( Doctrine\Common\Collections\Collection $variants )

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 ( )

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

getShippingCostCurrency() public method

public getShippingCostCurrency ( ) : string
return string

getShippingCostGrossPrice() public method

public getShippingCostGrossPrice ( ) : float
return float

getShippingCostQuantity() public method

getShippingCostWeight() public method

public getShippingCostWeight ( ) : float
return float

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 )
$statuses 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 $variants )
$variants Doctrine\Common\Collections\Collection

setWeight() public method

public setWeight ( float $weight )
$weight float

synchronizeVariants() protected method

protected synchronizeVariants ( Doctrine\Common\Collections\Collection $variants )
$variants Doctrine\Common\Collections\Collection

Property Details

$attributeGroup protected_oe property

protected AttributeGroupInterface,WellCommerce\Bundle\AttributeBundle\Entity $attributeGroup
return WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface

$buyPrice protected_oe property

protected Price,WellCommerce\Bundle\AppBundle\Entity $buyPrice
return WellCommerce\Bundle\AppBundle\Entity\Price

$buyPriceTax protected_oe property

protected TaxInterface,WellCommerce\Bundle\TaxBundle\Entity $buyPriceTax
return WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

$categories protected_oe property

protected Collection,Doctrine\Common\Collections $categories
return Doctrine\Common\Collections\Collection

$dimension protected_oe property

protected Dimension,WellCommerce\Bundle\AppBundle\Entity $dimension
return WellCommerce\Bundle\AppBundle\Entity\Dimension

$packageSize protected_oe property

protected float $packageSize
return float

$productPhotos protected_oe property

protected Collection,Doctrine\Common\Collections $productPhotos
return Doctrine\Common\Collections\Collection

$reviews protected_oe property

protected Collection,Doctrine\Common\Collections $reviews
return Doctrine\Common\Collections\Collection

$sellPrice protected_oe property

protected DiscountablePrice,WellCommerce\Bundle\AppBundle\Entity $sellPrice
return WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice

$sellPriceTax protected_oe property

protected TaxInterface,WellCommerce\Bundle\TaxBundle\Entity $sellPriceTax
return WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

$sku protected_oe property

protected string $sku
return string

$statuses protected_oe property

protected Collection,Doctrine\Common\Collections $statuses
return Doctrine\Common\Collections\Collection

$stock protected_oe property

protected int $stock
return integer

$trackStock protected_oe property

protected bool $trackStock
return boolean

$variants protected_oe property

protected Collection,Doctrine\Common\Collections $variants
return Doctrine\Common\Collections\Collection

$weight protected_oe property

protected float $weight
return float