PHP Класс Sylius\Bundle\CoreBundle\Fixture\OrderFixture

Автор: Paweł Jędrzejewski ([email protected])
Наследование: extends Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture
Показать файл Открыть проект

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

Метод Описание
__construct ( Sylius\Component\Resource\Factory\FactoryInterface $orderFactory, Sylius\Component\Resource\Factory\FactoryInterface $orderItemFactory, Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface $orderItemQuantityModifier, Doctrine\Common\Persistence\ObjectManager $orderManager, Sylius\Component\Resource\Repository\RepositoryInterface $channelRepository, Sylius\Component\Resource\Repository\RepositoryInterface $customerRepository, Sylius\Component\Resource\Repository\RepositoryInterface $productRepository, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository, Sylius\Component\Core\Repository\PaymentMethodRepositoryInterface $paymentMethodRepository, Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface $shippingMethodRepository, Sylius\Component\Resource\Factory\FactoryInterface $addressFactory, SM\Factory\FactoryInterface $stateMachineFactory )
getName ( )
load ( array $options )

Защищенные методы

Метод Описание
configureOptionsNode ( ArrayNodeDefinition $optionsNode )

Приватные методы

Метод Описание
address ( Sylius\Component\Core\Model\OrderInterface $order, string $countryCode )
applyCheckoutStateTransition ( Sylius\Component\Core\Model\OrderInterface $order, string $transition )
completeCheckout ( Sylius\Component\Core\Model\OrderInterface $order )
generateItems ( Sylius\Component\Core\Model\OrderInterface $order )
selectPayment ( Sylius\Component\Core\Model\OrderInterface $order )
selectShipping ( Sylius\Component\Core\Model\OrderInterface $order )

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

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

public __construct ( Sylius\Component\Resource\Factory\FactoryInterface $orderFactory, Sylius\Component\Resource\Factory\FactoryInterface $orderItemFactory, Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface $orderItemQuantityModifier, Doctrine\Common\Persistence\ObjectManager $orderManager, Sylius\Component\Resource\Repository\RepositoryInterface $channelRepository, Sylius\Component\Resource\Repository\RepositoryInterface $customerRepository, Sylius\Component\Resource\Repository\RepositoryInterface $productRepository, Sylius\Component\Resource\Repository\RepositoryInterface $countryRepository, Sylius\Component\Core\Repository\PaymentMethodRepositoryInterface $paymentMethodRepository, Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface $shippingMethodRepository, Sylius\Component\Resource\Factory\FactoryInterface $addressFactory, SM\Factory\FactoryInterface $stateMachineFactory )
$orderFactory Sylius\Component\Resource\Factory\FactoryInterface
$orderItemFactory Sylius\Component\Resource\Factory\FactoryInterface
$orderItemQuantityModifier Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface
$orderManager Doctrine\Common\Persistence\ObjectManager
$channelRepository Sylius\Component\Resource\Repository\RepositoryInterface
$customerRepository Sylius\Component\Resource\Repository\RepositoryInterface
$productRepository Sylius\Component\Resource\Repository\RepositoryInterface
$countryRepository Sylius\Component\Resource\Repository\RepositoryInterface
$paymentMethodRepository Sylius\Component\Core\Repository\PaymentMethodRepositoryInterface
$shippingMethodRepository Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface
$addressFactory Sylius\Component\Resource\Factory\FactoryInterface
$stateMachineFactory SM\Factory\FactoryInterface

configureOptionsNode() защищенный Метод

protected configureOptionsNode ( ArrayNodeDefinition $optionsNode )
$optionsNode Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition

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

public getName ( )

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

public load ( array $options )
$options array