PHP Класс spec\Sylius\Bundle\ProductBundle\Validator\ProductVariantCombinationValidatorSpec

Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

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

Метод Описание
it_adds_violation_if_variant_with_given_same_options_already_exists ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $variant, Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface $variantsParityChecker )
it_does_not_add_violation_if_product_does_not_have_options ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $variant, Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface $variantsParityChecker )
it_does_not_add_violation_if_product_does_not_have_variants ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $variant, Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface $variantsParityChecker )
it_is_a_constraint_validator ( )
it_is_initializable ( )
let ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface $variantsParityChecker )

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

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

public it_adds_violation_if_variant_with_given_same_options_already_exists ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $variant, Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface $variantsParityChecker )
$context Symfony\Component\Validator\Context\ExecutionContextInterface
$product Sylius\Component\Product\Model\ProductInterface
$variant Sylius\Component\Product\Model\ProductVariantInterface
$variantsParityChecker Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface

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

public it_does_not_add_violation_if_product_does_not_have_options ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $variant, Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface $variantsParityChecker )
$context Symfony\Component\Validator\Context\ExecutionContextInterface
$product Sylius\Component\Product\Model\ProductInterface
$variant Sylius\Component\Product\Model\ProductVariantInterface
$variantsParityChecker Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface

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

public it_does_not_add_violation_if_product_does_not_have_variants ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $variant, Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface $variantsParityChecker )
$context Symfony\Component\Validator\Context\ExecutionContextInterface
$product Sylius\Component\Product\Model\ProductInterface
$variant Sylius\Component\Product\Model\ProductVariantInterface
$variantsParityChecker Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface

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

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

public it_is_initializable ( )

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

public let ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface $variantsParityChecker )
$context Symfony\Component\Validator\Context\ExecutionContextInterface
$variantsParityChecker Sylius\Component\Product\Checker\ProductVariantsParityCheckerInterface