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

Author: Mateusz Zalewski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
显示文件 Open project: sylius/sylius

Public Methods

Method 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 method

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 method

it_is_initializable() public method

public it_is_initializable ( )

it_listens_on_pre_set_data_and_submit_events() public method

it_removes_channel_pricings_with_not_specified_price_on_submit() public method

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 method

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