Метод | Описание | |
---|---|---|
it_add_violation_if_product_is_simple_and_code_has_been_used_in_other_product_variant ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $existingProductVariant, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository, Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface $constraintViolationBuilder ) | ||
it_does_not_add_violation_if_product_is_configurable ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product ) | ||
it_does_not_add_violation_if_product_is_simple_but_code_has_not_been_used_among_neither_producs_nor_product_variants ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository ) | ||
it_is_a_constraint_validator ( ) | ||
it_is_initializable ( ) | ||
let ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository ) |
public it_add_violation_if_product_is_simple_and_code_has_been_used_in_other_product_variant ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Model\ProductVariantInterface $existingProductVariant, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository, Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface $constraintViolationBuilder ) | ||
$context | Symfony\Component\Validator\Context\ExecutionContextInterface | |
$product | Sylius\Component\Product\Model\ProductInterface | |
$existingProductVariant | Sylius\Component\Product\Model\ProductVariantInterface | |
$productVariantRepository | Sylius\Component\Product\Repository\ProductVariantRepositoryInterface | |
$constraintViolationBuilder | Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface |
public it_does_not_add_violation_if_product_is_configurable ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product ) | ||
$context | Symfony\Component\Validator\Context\ExecutionContextInterface | |
$product | Sylius\Component\Product\Model\ProductInterface |
public it_does_not_add_violation_if_product_is_simple_but_code_has_not_been_used_among_neither_producs_nor_product_variants ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Model\ProductInterface $product, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository ) | ||
$context | Symfony\Component\Validator\Context\ExecutionContextInterface | |
$product | Sylius\Component\Product\Model\ProductInterface | |
$productVariantRepository | Sylius\Component\Product\Repository\ProductVariantRepositoryInterface |
public let ( Symfony\Component\Validator\Context\ExecutionContextInterface $context, Sylius\Component\Product\Repository\ProductVariantRepositoryInterface $productVariantRepository ) | ||
$context | Symfony\Component\Validator\Context\ExecutionContextInterface | |
$productVariantRepository | Sylius\Component\Product\Repository\ProductVariantRepositoryInterface |