PHP Class Sylius\Component\Core\Model\Product

Author: Paweł Jędrzejewski ([email protected])
Author: Gonzalo Vilaseca ([email protected])
Author: Anna Walasek ([email protected])
Inheritance: extends Sylius\Component\Product\Model\Product, implements Sylius\Component\Core\Model\ProductInterface
Afficher le fichier Open project: sylius/sylius Class Usage Examples

Protected Properties

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
createTranslation ( )

Method Details

__construct() public méthode

public __construct ( )

addChannel() public méthode

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

addImage() public méthode

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

addProductTaxon() public méthode

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

addReview() public méthode

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

createTranslation() protected méthode

protected createTranslation ( )

filterProductTaxonsByTaxon() public méthode

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

getAcceptedReviews() public méthode

public getAcceptedReviews ( )

getAverageRating() public méthode

public getAverageRating ( )

getChannels() public méthode

public getChannels ( )

getImageByCode() public méthode

public getImageByCode ( $code )

getImages() public méthode

public getImages ( )

getMainTaxon() public méthode

public getMainTaxon ( )

getProductTaxons() public méthode

public getProductTaxons ( )

getReviews() public méthode

public getReviews ( )

getShortDescription() public méthode

public getShortDescription ( )

getVariantSelectionMethod() public méthode

getVariantSelectionMethodLabel() public méthode

getVariantSelectionMethodLabels() public static méthode

hasChannel() public méthode

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

hasImage() public méthode

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

hasImages() public méthode

public hasImages ( )

hasProductTaxon() public méthode

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

isVariantSelectionMethodChoice() public méthode

removeChannel() public méthode

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

removeImage() public méthode

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

removeProductTaxon() public méthode

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

removeReview() public méthode

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

setAverageRating() public méthode

public setAverageRating ( $averageRating )

setMainTaxon() public méthode

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

setShortDescription() public méthode

public setShortDescription ( $shortDescription )

setVariantSelectionMethod() public méthode

public setVariantSelectionMethod ( $variantSelectionMethod )

Property Details

$averageRating protected_oe property

protected float $averageRating
Résultat float

$channels protected_oe property

protected ChannelInterface[],Sylius\Component\Core\Model|Collection,Doctrine\Common\Collections $channels
Résultat Sylius\Component\Core\Model\ChannelInterface[] | Doctrine\Common\Collections\Collection

$images protected_oe property

protected Collection,Doctrine\Common\Collections|ImageInterface[],Sylius\Component\Core\Model $images
Résultat Doctrine\Common\Collections\Collection | Sylius\Component\Core\Model\ImageInterface[]

$mainTaxon protected_oe property

protected TaxonInterface,Sylius\Component\Taxonomy\Model $mainTaxon
Résultat Sylius\Component\Taxonomy\Model\TaxonInterface

$productTaxons protected_oe property

protected Collection,Doctrine\Common\Collections|ProductTaxonInterface[],Sylius\Component\Core\Model $productTaxons
Résultat Doctrine\Common\Collections\Collection | Sylius\Component\Core\Model\ProductTaxonInterface[]

$reviews protected_oe property

protected Collection,Doctrine\Common\Collections|ReviewInterface[],Sylius\Component\Review\Model $reviews
Résultat Doctrine\Common\Collections\Collection | Sylius\Component\Review\Model\ReviewInterface[]

$variantSelectionMethod protected_oe property

protected string $variantSelectionMethod
Résultat string