PHP Class Sylius\Behat\Context\Transform\ProductVariantContext

Author: Łukasz Chruściel ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Component\Core\Repository\ProductRepositoryInterface $productRepository, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository )
getProductVariantByCode ( $code )
getProductVariantByName ( $name )
getProductVariantByNameAndProduct ( $variantName, $productName )

Method Details

__construct() public method

public __construct ( Sylius\Component\Core\Repository\ProductRepositoryInterface $productRepository, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository )
$productRepository Sylius\Component\Core\Repository\ProductRepositoryInterface
$productVariantRepository Sylius\Component\Product\Repository\ProductVariantRepositoryInterface

getProductVariantByCode() public method

public getProductVariantByCode ( $code )

getProductVariantByName() public method

public getProductVariantByName ( $name )

getProductVariantByNameAndProduct() public method

public getProductVariantByNameAndProduct ( $variantName, $productName )