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
파일 보기 프로젝트 열기: wellcommerce/wellcommerce 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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() 공개 메소드

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