PHP Class AppBundle\Entity\PromotionSubject

Author: Magdalena Banasiak ([email protected])
Inheritance: implements Sylius\Component\Resource\Model\ResourceInterface, implements Sylius\Component\Promotion\Model\PromotionSubjectInterface
Show file Open project: sylius/sylius

Protected Properties

Property Type Description
$promotions Doctrine\Common\Collections\Collection | Sylius\Component\Promotion\Model\PromotionInterface[]

Public Methods

Method Description
addPromotion ( Sylius\Component\Promotion\Model\PromotionInterface $promotion )
getId ( )
getPromotionSubjectTotal ( )
getPromotions ( )
hasPromotion ( Sylius\Component\Promotion\Model\PromotionInterface $promotion )
removePromotion ( Sylius\Component\Promotion\Model\PromotionInterface $promotion )

Method Details

addPromotion() public method

public addPromotion ( Sylius\Component\Promotion\Model\PromotionInterface $promotion )
$promotion Sylius\Component\Promotion\Model\PromotionInterface

getId() public method

public getId ( )

getPromotionSubjectTotal() public method

getPromotions() public method

public getPromotions ( )

hasPromotion() public method

public hasPromotion ( Sylius\Component\Promotion\Model\PromotionInterface $promotion )
$promotion Sylius\Component\Promotion\Model\PromotionInterface

removePromotion() public method

public removePromotion ( Sylius\Component\Promotion\Model\PromotionInterface $promotion )
$promotion Sylius\Component\Promotion\Model\PromotionInterface

Property Details

$promotions protected property

protected Collection,Doctrine\Common\Collections|PromotionInterface[],Sylius\Component\Promotion\Model $promotions
return Doctrine\Common\Collections\Collection | Sylius\Component\Promotion\Model\PromotionInterface[]