AppBundle\Entity\PromotionSubject::hasPromotion PHP Метод

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

public hasPromotion ( Sylius\Component\Promotion\Model\PromotionInterface $promotion )
$promotion Sylius\Component\Promotion\Model\PromotionInterface
    public function hasPromotion(PromotionInterface $promotion)
    {
        return $this->promotions->contains($promotion);
    }