PHP 클래스 Sylius\Component\Core\Model\Product

저자: Paweł Jędrzejewski ([email protected])
저자: Gonzalo Vilaseca ([email protected])
저자: Anna Walasek ([email protected])
상속: extends Sylius\Component\Product\Model\Product, implements Sylius\Component\Core\Model\ProductInterface
파일 보기 프로젝트 열기: sylius/sylius 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$averageRating float
$channels Sylius\Component\Core\Model\ChannelInterface[] | Doctrine\Common\Collections\Collection
$images Doctrine\Common\Collections\Collection | Sylius\Component\Core\Model\ImageInterface[]
$mainTaxon Sylius\Component\Taxonomy\Model\TaxonInterface
$productTaxons Doctrine\Common\Collections\Collection | Sylius\Component\Core\Model\ProductTaxonInterface[]
$reviews Doctrine\Common\Collections\Collection | Sylius\Component\Review\Model\ReviewInterface[]
$variantSelectionMethod string

공개 메소드들

메소드 설명
__construct ( )
addChannel ( Sylius\Component\Channel\Model\ChannelInterface $channel )
addImage ( Sylius\Component\Core\Model\ImageInterface $image )
addProductTaxon ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon )
addReview ( Sylius\Component\Review\Model\ReviewInterface $review )
filterProductTaxonsByTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
getAcceptedReviews ( )
getAverageRating ( )
getChannels ( )
getImageByCode ( $code )
getImages ( )
getMainTaxon ( )
getProductTaxons ( )
getReviews ( )
getShortDescription ( )
getVariantSelectionMethod ( )
getVariantSelectionMethodLabel ( )
getVariantSelectionMethodLabels ( )
hasChannel ( Sylius\Component\Channel\Model\ChannelInterface $channel )
hasImage ( Sylius\Component\Core\Model\ImageInterface $image )
hasImages ( )
hasProductTaxon ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon )
isVariantSelectionMethodChoice ( )
removeChannel ( Sylius\Component\Channel\Model\ChannelInterface $channel )
removeImage ( Sylius\Component\Core\Model\ImageInterface $image )
removeProductTaxon ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon )
removeReview ( Sylius\Component\Review\Model\ReviewInterface $review )
setAverageRating ( $averageRating )
setMainTaxon ( Sylius\Component\Core\Model\TaxonInterface $mainTaxon = null )
setShortDescription ( $shortDescription )
setVariantSelectionMethod ( $variantSelectionMethod )

보호된 메소드들

메소드 설명
createTranslation ( )

메소드 상세

__construct() 공개 메소드

public __construct ( )

addChannel() 공개 메소드

public addChannel ( Sylius\Component\Channel\Model\ChannelInterface $channel )
$channel Sylius\Component\Channel\Model\ChannelInterface

addImage() 공개 메소드

public addImage ( Sylius\Component\Core\Model\ImageInterface $image )
$image Sylius\Component\Core\Model\ImageInterface

addProductTaxon() 공개 메소드

public addProductTaxon ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon )
$productTaxon Sylius\Component\Core\Model\ProductTaxonInterface

addReview() 공개 메소드

public addReview ( Sylius\Component\Review\Model\ReviewInterface $review )
$review Sylius\Component\Review\Model\ReviewInterface

createTranslation() 보호된 메소드

protected createTranslation ( )

filterProductTaxonsByTaxon() 공개 메소드

public filterProductTaxonsByTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

getAcceptedReviews() 공개 메소드

public getAcceptedReviews ( )

getAverageRating() 공개 메소드

public getAverageRating ( )

getChannels() 공개 메소드

public getChannels ( )

getImageByCode() 공개 메소드

public getImageByCode ( $code )

getImages() 공개 메소드

public getImages ( )

getMainTaxon() 공개 메소드

public getMainTaxon ( )

getProductTaxons() 공개 메소드

public getProductTaxons ( )

getReviews() 공개 메소드

public getReviews ( )

getShortDescription() 공개 메소드

public getShortDescription ( )

getVariantSelectionMethod() 공개 메소드

getVariantSelectionMethodLabel() 공개 메소드

getVariantSelectionMethodLabels() 공개 정적인 메소드

hasChannel() 공개 메소드

public hasChannel ( Sylius\Component\Channel\Model\ChannelInterface $channel )
$channel Sylius\Component\Channel\Model\ChannelInterface

hasImage() 공개 메소드

public hasImage ( Sylius\Component\Core\Model\ImageInterface $image )
$image Sylius\Component\Core\Model\ImageInterface

hasImages() 공개 메소드

public hasImages ( )

hasProductTaxon() 공개 메소드

public hasProductTaxon ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon )
$productTaxon Sylius\Component\Core\Model\ProductTaxonInterface

isVariantSelectionMethodChoice() 공개 메소드

removeChannel() 공개 메소드

public removeChannel ( Sylius\Component\Channel\Model\ChannelInterface $channel )
$channel Sylius\Component\Channel\Model\ChannelInterface

removeImage() 공개 메소드

public removeImage ( Sylius\Component\Core\Model\ImageInterface $image )
$image Sylius\Component\Core\Model\ImageInterface

removeProductTaxon() 공개 메소드

public removeProductTaxon ( Sylius\Component\Core\Model\ProductTaxonInterface $productTaxon )
$productTaxon Sylius\Component\Core\Model\ProductTaxonInterface

removeReview() 공개 메소드

public removeReview ( Sylius\Component\Review\Model\ReviewInterface $review )
$review Sylius\Component\Review\Model\ReviewInterface

setAverageRating() 공개 메소드

public setAverageRating ( $averageRating )

setMainTaxon() 공개 메소드

public setMainTaxon ( Sylius\Component\Core\Model\TaxonInterface $mainTaxon = null )
$mainTaxon Sylius\Component\Core\Model\TaxonInterface

setShortDescription() 공개 메소드

public setShortDescription ( $shortDescription )

setVariantSelectionMethod() 공개 메소드

public setVariantSelectionMethod ( $variantSelectionMethod )

프로퍼티 상세

$averageRating 보호되어 있는 프로퍼티

protected float $averageRating
리턴 float

$channels 보호되어 있는 프로퍼티

protected ChannelInterface[],Sylius\Component\Core\Model|Collection,Doctrine\Common\Collections $channels
리턴 Sylius\Component\Core\Model\ChannelInterface[] | Doctrine\Common\Collections\Collection

$images 보호되어 있는 프로퍼티

protected Collection,Doctrine\Common\Collections|ImageInterface[],Sylius\Component\Core\Model $images
리턴 Doctrine\Common\Collections\Collection | Sylius\Component\Core\Model\ImageInterface[]

$mainTaxon 보호되어 있는 프로퍼티

protected TaxonInterface,Sylius\Component\Taxonomy\Model $mainTaxon
리턴 Sylius\Component\Taxonomy\Model\TaxonInterface

$productTaxons 보호되어 있는 프로퍼티

protected Collection,Doctrine\Common\Collections|ProductTaxonInterface[],Sylius\Component\Core\Model $productTaxons
리턴 Doctrine\Common\Collections\Collection | Sylius\Component\Core\Model\ProductTaxonInterface[]

$reviews 보호되어 있는 프로퍼티

protected Collection,Doctrine\Common\Collections|ReviewInterface[],Sylius\Component\Review\Model $reviews
리턴 Doctrine\Common\Collections\Collection | Sylius\Component\Review\Model\ReviewInterface[]

$variantSelectionMethod 보호되어 있는 프로퍼티

protected string $variantSelectionMethod
리턴 string