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

Protected Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

Méthode Description
synchronizeVariants ( Doctrine\Common\Collections\Collection $variants )

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

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

getShippingCostCurrency() public méthode

public getShippingCostCurrency ( ) : string
Résultat string

getShippingCostGrossPrice() public méthode

public getShippingCostGrossPrice ( ) : float
Résultat float

getShippingCostQuantity() public méthode

public getShippingCostQuantity ( ) : integer
Résultat integer

getShippingCostWeight() public méthode

public getShippingCostWeight ( ) : float
Résultat float

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

setWeight() public méthode

public setWeight ( float $weight )
$weight float

synchronizeVariants() protected méthode

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
Résultat WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface

$buyPrice protected_oe property

protected Price,WellCommerce\Bundle\AppBundle\Entity $buyPrice
Résultat WellCommerce\Bundle\AppBundle\Entity\Price

$buyPriceTax protected_oe property

protected TaxInterface,WellCommerce\Bundle\TaxBundle\Entity $buyPriceTax
Résultat WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

$categories protected_oe property

protected Collection,Doctrine\Common\Collections $categories
Résultat Doctrine\Common\Collections\Collection

$dimension protected_oe property

protected Dimension,WellCommerce\Bundle\AppBundle\Entity $dimension
Résultat WellCommerce\Bundle\AppBundle\Entity\Dimension

$packageSize protected_oe property

protected float $packageSize
Résultat float

$productPhotos protected_oe property

protected Collection,Doctrine\Common\Collections $productPhotos
Résultat Doctrine\Common\Collections\Collection

$reviews protected_oe property

protected Collection,Doctrine\Common\Collections $reviews
Résultat Doctrine\Common\Collections\Collection

$sellPrice protected_oe property

protected DiscountablePrice,WellCommerce\Bundle\AppBundle\Entity $sellPrice
Résultat WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice

$sellPriceTax protected_oe property

protected TaxInterface,WellCommerce\Bundle\TaxBundle\Entity $sellPriceTax
Résultat WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

$sku protected_oe property

protected string $sku
Résultat string

$statuses protected_oe property

protected Collection,Doctrine\Common\Collections $statuses
Résultat Doctrine\Common\Collections\Collection

$stock protected_oe property

protected int $stock
Résultat integer

$trackStock protected_oe property

protected bool $trackStock
Résultat boolean

$variants protected_oe property

protected Collection,Doctrine\Common\Collections $variants
Résultat Doctrine\Common\Collections\Collection

$weight protected_oe property

protected float $weight
Résultat float