PHP Класс WellCommerce\Bundle\ProductBundle\Entity\Product

Автор: Adam Piotrowski ([email protected])
Наследование: 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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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 )

Защищенные методы

Метод Описание
synchronizeVariants ( Doctrine\Common\Collections\Collection $variants )

Описание методов

addCategory() публичный Метод

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

addProductPhoto() публичный Метод

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

getAttributeGroup() публичный Метод

public getAttributeGroup ( )

getBuyPrice() публичный Метод

public getBuyPrice ( ) : Price
Результат WellCommerce\Bundle\AppBundle\Entity\Price

getBuyPriceTax() публичный Метод

public getBuyPriceTax ( ) : WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
Результат WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

getCategories() публичный Метод

public getCategories ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getDimension() публичный Метод

public getDimension ( ) : Dimension
Результат WellCommerce\Bundle\AppBundle\Entity\Dimension

getPackageSize() публичный Метод

public getPackageSize ( ) : float
Результат float

getProductPhotos() публичный Метод

public getProductPhotos ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getReviews() публичный Метод

public getReviews ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getSellPrice() публичный Метод

public getSellPrice ( ) : DiscountablePrice
Результат WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice

getSellPriceTax() публичный Метод

public getSellPriceTax ( ) : WellCommerce\Bundle\TaxBundle\Entity\TaxInterface
Результат WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

getShippingCostCurrency() публичный Метод

public getShippingCostCurrency ( ) : string
Результат string

getShippingCostGrossPrice() публичный Метод

public getShippingCostGrossPrice ( ) : float
Результат float

getShippingCostQuantity() публичный Метод

public getShippingCostQuantity ( ) : integer
Результат integer

getShippingCostWeight() публичный Метод

public getShippingCostWeight ( ) : float
Результат float

getSku() публичный Метод

public getSku ( ) : string
Результат string

getStatuses() публичный Метод

public getStatuses ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getStock() публичный Метод

public getStock ( ) : integer
Результат integer

getTrackStock() публичный Метод

public getTrackStock ( ) : boolean
Результат boolean

getVariants() публичный Метод

public getVariants ( ) : Doctrine\Common\Collections\Collection
Результат Doctrine\Common\Collections\Collection

getWeight() публичный Метод

public getWeight ( ) : float
Результат float

removeVariant() публичный Метод

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

setAttributeGroup() публичный Метод

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

setBuyPrice() публичный Метод

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

setBuyPriceTax() публичный Метод

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

setCategories() публичный Метод

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

setDimension() публичный Метод

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

setPackageSize() публичный Метод

public setPackageSize ( float $packageSize )
$packageSize float

setProductPhotos() публичный Метод

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

setSellPrice() публичный Метод

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

setSellPriceTax() публичный Метод

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

setSku() публичный Метод

public setSku ( string $sku )
$sku string

setStatuses() публичный Метод

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

setStock() публичный Метод

public setStock ( integer $stock )
$stock integer

setTrackStock() публичный Метод

public setTrackStock ( boolean $trackStock )
$trackStock boolean

setVariants() публичный Метод

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

setWeight() публичный Метод

public setWeight ( float $weight )
$weight float

synchronizeVariants() защищенный Метод

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

Описание свойств

$attributeGroup защищенное свойство

protected AttributeGroupInterface,WellCommerce\Bundle\AttributeBundle\Entity $attributeGroup
Результат WellCommerce\Bundle\AttributeBundle\Entity\AttributeGroupInterface

$buyPrice защищенное свойство

protected Price,WellCommerce\Bundle\AppBundle\Entity $buyPrice
Результат WellCommerce\Bundle\AppBundle\Entity\Price

$buyPriceTax защищенное свойство

protected TaxInterface,WellCommerce\Bundle\TaxBundle\Entity $buyPriceTax
Результат WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

$categories защищенное свойство

protected Collection,Doctrine\Common\Collections $categories
Результат Doctrine\Common\Collections\Collection

$dimension защищенное свойство

protected Dimension,WellCommerce\Bundle\AppBundle\Entity $dimension
Результат WellCommerce\Bundle\AppBundle\Entity\Dimension

$packageSize защищенное свойство

protected float $packageSize
Результат float

$productPhotos защищенное свойство

protected Collection,Doctrine\Common\Collections $productPhotos
Результат Doctrine\Common\Collections\Collection

$reviews защищенное свойство

protected Collection,Doctrine\Common\Collections $reviews
Результат Doctrine\Common\Collections\Collection

$sellPrice защищенное свойство

protected DiscountablePrice,WellCommerce\Bundle\AppBundle\Entity $sellPrice
Результат WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice

$sellPriceTax защищенное свойство

protected TaxInterface,WellCommerce\Bundle\TaxBundle\Entity $sellPriceTax
Результат WellCommerce\Bundle\TaxBundle\Entity\TaxInterface

$sku защищенное свойство

protected string $sku
Результат string

$statuses защищенное свойство

protected Collection,Doctrine\Common\Collections $statuses
Результат Doctrine\Common\Collections\Collection

$stock защищенное свойство

protected int $stock
Результат integer

$trackStock защищенное свойство

protected bool $trackStock
Результат boolean

$variants защищенное свойство

protected Collection,Doctrine\Common\Collections $variants
Результат Doctrine\Common\Collections\Collection

$weight защищенное свойство

protected float $weight
Результат float