PHP Class spec\Sylius\Bundle\CoreBundle\Form\EventSubscriber\ChannelPricingsFormSubscriberSpec

Author: Mateusz Zalewski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode Description
it_adds_missing_channel_pricings_on_pre_set_data ( Sylius\Component\Core\Model\ChannelInterface $firstChannel, Sylius\Component\Core\Model\ChannelInterface $secondChannel, Sylius\Component\Core\Model\ChannelPricingInterface $channelPricing, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository, Sylius\Component\Resource\Factory\FactoryInterface $channelPricingFactory, Symfony\Component\Form\FormEvent $formEvent, Sylius\Component\Core\Model\ProductVariantInterface $productVariant )
it_implements_event_subscriber_interface ( )
it_is_initializable ( )
it_listens_on_pre_set_data_and_submit_events ( )
it_removes_channel_pricings_with_not_specified_price_on_submit ( Sylius\Component\Core\Model\ChannelPricingInterface $channelPricingWithPrice, Sylius\Component\Core\Model\ChannelPricingInterface $channelPricingWithoutPrice, Symfony\Component\Form\FormEvent $formEvent, Sylius\Component\Core\Model\ProductVariantInterface $productVariant )
let ( Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository, Sylius\Component\Resource\Factory\FactoryInterface $channelPricingFactory )

Method Details

it_adds_missing_channel_pricings_on_pre_set_data() public méthode

public it_adds_missing_channel_pricings_on_pre_set_data ( Sylius\Component\Core\Model\ChannelInterface $firstChannel, Sylius\Component\Core\Model\ChannelInterface $secondChannel, Sylius\Component\Core\Model\ChannelPricingInterface $channelPricing, Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository, Sylius\Component\Resource\Factory\FactoryInterface $channelPricingFactory, Symfony\Component\Form\FormEvent $formEvent, Sylius\Component\Core\Model\ProductVariantInterface $productVariant )
$firstChannel Sylius\Component\Core\Model\ChannelInterface
$secondChannel Sylius\Component\Core\Model\ChannelInterface
$channelPricing Sylius\Component\Core\Model\ChannelPricingInterface
$channelRepository Sylius\Component\Channel\Repository\ChannelRepositoryInterface
$channelPricingFactory Sylius\Component\Resource\Factory\FactoryInterface
$formEvent Symfony\Component\Form\FormEvent
$productVariant Sylius\Component\Core\Model\ProductVariantInterface

it_implements_event_subscriber_interface() public méthode

it_is_initializable() public méthode

public it_is_initializable ( )

it_listens_on_pre_set_data_and_submit_events() public méthode

it_removes_channel_pricings_with_not_specified_price_on_submit() public méthode

public it_removes_channel_pricings_with_not_specified_price_on_submit ( Sylius\Component\Core\Model\ChannelPricingInterface $channelPricingWithPrice, Sylius\Component\Core\Model\ChannelPricingInterface $channelPricingWithoutPrice, Symfony\Component\Form\FormEvent $formEvent, Sylius\Component\Core\Model\ProductVariantInterface $productVariant )
$channelPricingWithPrice Sylius\Component\Core\Model\ChannelPricingInterface
$channelPricingWithoutPrice Sylius\Component\Core\Model\ChannelPricingInterface
$formEvent Symfony\Component\Form\FormEvent
$productVariant Sylius\Component\Core\Model\ProductVariantInterface

let() public méthode

public let ( Sylius\Component\Channel\Repository\ChannelRepositoryInterface $channelRepository, Sylius\Component\Resource\Factory\FactoryInterface $channelPricingFactory )
$channelRepository Sylius\Component\Channel\Repository\ChannelRepositoryInterface
$channelPricingFactory Sylius\Component\Resource\Factory\FactoryInterface