PHP Class Sylius\Bundle\CoreBundle\Fixture\OrderFixture

Author: Paweł Jędrzejewski ([email protected])
Inheritance: extends Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture
Datei anzeigen Open project: sylius/sylius

Public Methods

Method Description
__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 )

Protected Methods

Method Description
configureOptionsNode ( ArrayNodeDefinition $optionsNode )

Private Methods

Method Description
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 )

Method Details

__construct() public method

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 method

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

getName() public method

public getName ( )

load() public method

public load ( array $options )
$options array