PHP Класс spec\Sylius\Bundle\CoreBundle\Form\EventSubscriber\ChannelPricingsFormSubscriberSpec

Автор: Mateusz Zalewski ([email protected])
Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )

Описание методов

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

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() публичный Метод

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

public it_is_initializable ( )

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

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

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